aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipx/af_ipx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
index 401964204866..bef3f61569f7 100644
--- a/net/ipx/af_ipx.c
+++ b/net/ipx/af_ipx.c
@@ -1645,7 +1645,7 @@ static int ipx_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_ty
1645 if (!pskb_may_pull(skb, sizeof(struct ipxhdr))) 1645 if (!pskb_may_pull(skb, sizeof(struct ipxhdr)))
1646 goto drop; 1646 goto drop;
1647 1647
1648 ipx_pktsize = ntohs(ipxhdr(skb)->ipx_pktsize); 1648 ipx_pktsize = ntohs(ipx_hdr(skb)->ipx_pktsize);
1649 1649
1650 /* Too small or invalid header? */ 1650 /* Too small or invalid header? */
1651 if (ipx_pktsize < sizeof(struct ipxhdr) || 1651 if (ipx_pktsize < sizeof(struct ipxhdr) ||