X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fsctp%2Finput.c;h=595fe32b3d41ef238664b757449aeddd5b7fbb7c;hb=eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0;hp=2b0863aba3fb3f3b5c4050196bccbf79908c232b;hpb=e023dd643798c4f06c16466af90b4d250e4b8bd7;p=mirror_ubuntu-zesty-kernel.git 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) if (skb->len < sizeof(struct sctp_chunkhdr)) goto discard_it; - family = ipver2af(skb->nh.iph->version); + family = ipver2af(ip_hdr(skb)->version); af = sctp_get_af_specific(family); if (unlikely(!af)) goto discard_it;