Commit 9baffaa6 authored by Vlad Yasevich's avatar Vlad Yasevich

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: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent fd10279b
...@@ -243,7 +243,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, ...@@ -243,7 +243,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
if (auth_chunks->length) if (auth_chunks->length)
chunksize += ntohs(auth_chunks->length); chunksize += ntohs(auth_chunks->length);
else else
auth_hmacs = NULL; auth_chunks = NULL;
extensions[num_ext] = SCTP_CID_AUTH; extensions[num_ext] = SCTP_CID_AUTH;
num_ext += 1; num_ext += 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment