patch-2.4.25 linux-2.4.25/net/decnet/dn_neigh.c

Next file: linux-2.4.25/net/decnet/dn_rules.c
Previous file: linux-2.4.25/net/core/sysctl_net_core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/decnet/dn_neigh.c linux-2.4.25/net/decnet/dn_neigh.c
@@ -308,7 +308,7 @@
 	}
 
 	data = skb_push(skb, sizeof(struct dn_short_packet) + 2);
-	((unsigned short *)data) = dn_htons(skb->len - 2);
+	*((unsigned short *)data) = dn_htons(skb->len - 2);
 	sp = (struct dn_short_packet *)(data + 2);
 
 	sp->msgflg   = DN_RT_PKT_SHORT|(cb->rt_flags&(DN_RT_F_RQR|DN_RT_F_RTS));

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