From: Vlad Yasevich Date: Thu, 29 Nov 2007 13:44:34 +0000 (-0500) Subject: SCTP: Fix SCTP-AUTH to correctly add HMACS paramter. X-Git-Tag: v3.12-rc1~24573^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9baffaa689a50ef9480ecd9017ffd1480c807328;p=kernel%2Fkernel-generic.git SCTP: Fix SCTP-AUTH to correctly add HMACS paramter. There was a typo that cleared the HMACS parameters when no authenticated chunks were specified. We whould be clearing the chunks pointer instead of the hmacs. Signed-off-by: Vlad Yasevich --- diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 5a9783c..a139469 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -243,7 +243,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, if (auth_chunks->length) chunksize += ntohs(auth_chunks->length); else - auth_hmacs = NULL; + auth_chunks = NULL; extensions[num_ext] = SCTP_CID_AUTH; num_ext += 1;