patch-1.3.22 linux/net/ipv4/udp.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Aug 31 08:30:55 1995
- Orig file:
v1.3.21/linux/net/ipv4/udp.c
- Orig date:
Mon Aug 28 14:52:26 1995
diff -u --recursive --new-file v1.3.21/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -189,9 +189,10 @@
/* 4.1.3.3. */
/* After the comment above, that should be no surprise. */
- if (err < 13 && icmp_err_convert[err & 0xff].fatal)
+ err &= 0xff;
+ if (err < 13 && icmp_err_convert[err].fatal)
{
- sk->err = icmp_err_convert[err & 0xff].errno;
+ sk->err = icmp_err_convert[err].errno;
sk->error_report(sk);
}
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this