aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 2b0863aba3fb..595fe32b3d41 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -154,7 +154,7 @@ int sctp_rcv(struct sk_buff *skb)
154 if (skb->len < sizeof(struct sctp_chunkhdr)) 154 if (skb->len < sizeof(struct sctp_chunkhdr))
155 goto discard_it; 155 goto discard_it;
156 156
157 family = ipver2af(skb->nh.iph->version); 157 family = ipver2af(ip_hdr(skb)->version);
158 af = sctp_get_af_specific(family); 158 af = sctp_get_af_specific(family);
159 if (unlikely(!af)) 159 if (unlikely(!af))
160 goto discard_it; 160 goto discard_it;