From: Vlad Yasevich Date: Thu, 14 Feb 2008 15:18:20 +0000 (-0500) Subject: [SCTP]: Correctly set the length of sctp_assoc_change notification X-Git-Tag: v2.6.25-rc4~2^2~26^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b90a137d30a6322d76023d879d40fc31f3edf0a6;p=platform%2Fkernel%2Flinux-3.10.git [SCTP]: Correctly set the length of sctp_assoc_change notification sctp_assoc_change notification may contain the data from a received ABORT chunk. Set the length correctly to account for that. Signed-off-by: Vlad Yasevich --- diff --git a/net/sctp/ulpevent.c b/net/sctp/ulpevent.c index e27b11f..b43f1f1 100644 --- a/net/sctp/ulpevent.c +++ b/net/sctp/ulpevent.c @@ -206,7 +206,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_assoc_change( * This field is the total length of the notification data, including * the notification header. */ - sac->sac_length = sizeof(struct sctp_assoc_change); + sac->sac_length = skb->len; /* Socket Extensions for SCTP * 5.3.1.1 SCTP_ASSOC_CHANGE