Skip to content

Commit

Permalink
[SCTP]: Fix miss of report unrecognized HMAC Algorithm parameter
Browse files Browse the repository at this point in the history
This patch fix miss of check for report unrecognized HMAC Algorithm
parameter.  When AUTH is disabled, goto fall through path to report
unrecognized parameter, else, just break

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 1, 2008
1 parent 8cf8e5a commit ec9dbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ static sctp_ierror_t sctp_verify_param(const struct sctp_association *asoc,
break;

case SCTP_PARAM_HMAC_ALGO:
if (!sctp_auth_enable)
if (sctp_auth_enable)
break;
/* Fall Through */
fallthrough:
Expand Down

0 comments on commit ec9dbb1

Please sign in to comment.