SCTP: Fix SCTP-AUTH to correctly add HMACS paramter.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 29 Nov 2007 13:44:34 +0000 (08:44 -0500)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 29 Nov 2007 15:17:41 +0000 (10:17 -0500)
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 <vladislav.yasevich@hp.com>
net/sctp/sm_make_chunk.c

index 5a9783c38de160c40d66894dbefab7b6e4c76f1c..a139469792a30b08ce15ed95d850c9deb1f272fa 100644 (file)
@@ -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;