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, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this