diff options
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 3b56ae55aba3..1adb9270e317 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -240,6 +240,7 @@ static void sctp_v4_from_skb(union sctp_addr *addr, struct sk_buff *skb, | |||
240 | port = &addr->v4.sin_port; | 240 | port = &addr->v4.sin_port; |
241 | addr->v4.sin_family = AF_INET; | 241 | addr->v4.sin_family = AF_INET; |
242 | 242 | ||
243 | /* Always called on head skb, so this is safe */ | ||
243 | sh = sctp_hdr(skb); | 244 | sh = sctp_hdr(skb); |
244 | if (is_saddr) { | 245 | if (is_saddr) { |
245 | *port = sh->source; | 246 | *port = sh->source; |