diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 7182c5a450fb..98ce9524c87c 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -197,6 +197,7 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) } } + ch->length = htons(sizeof(*ch)); chunk->chunk_hdr = ch; chunk->chunk_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); skb_pull(chunk->skb, sizeof(*ch));