patch-2.3.49 linux/net/decnet/dn_nsp_in.c

Next file: linux/net/decnet/dn_nsp_out.c
Previous file: linux/net/decnet/dn_neigh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/net/decnet/dn_nsp_in.c linux/net/decnet/dn_nsp_in.c
@@ -320,7 +320,7 @@
 	struct dn_scp *scp = &sk->protinfo.dn;
 	unsigned short reason;
 
-	if (skb->len != 2)
+	if (skb->len < 2)
 		goto out;
 
 	reason = dn_ntohs(*(__u16 *)skb->data);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)