aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2007-11-29 08:44:34 -0500
committerVlad Yasevich <vladislav.yasevich@hp.com>2007-11-29 10:17:41 -0500
commit9baffaa689a50ef9480ecd9017ffd1480c807328 (patch)
tree189a6a5752b1b4321b9eccb449688287d6ecfd90 /net
parentfd10279bc7405c4f1e47a008686d3d9ad71d7f6d (diff)
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 <vladislav.yasevich@hp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sctp/sm_make_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 5a9783c38de1..a139469792a3 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,
243 if (auth_chunks->length) 243 if (auth_chunks->length)
244 chunksize += ntohs(auth_chunks->length); 244 chunksize += ntohs(auth_chunks->length);
245 else 245 else
246 auth_hmacs = NULL; 246 auth_chunks = NULL;
247 247
248 extensions[num_ext] = SCTP_CID_AUTH; 248 extensions[num_ext] = SCTP_CID_AUTH;
249 num_ext += 1; 249 num_ext += 1;