summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2008-01-28 20:58:46 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-31 19:27:09 -0800
commitec9dbb1c3ee785ddc0c327497df42c16188d1fd8 (patch)
tree3ed1bc21faf5e1ccc607b37229bd9e11ed28a26d
parent8cf8e5a67fb07f583aac94482ba51a7930dab493 (diff)
downloadlinux-3.10-ec9dbb1c3ee785ddc0c327497df42c16188d1fd8.tar.gz
linux-3.10-ec9dbb1c3ee785ddc0c327497df42c16188d1fd8.tar.bz2
linux-3.10-ec9dbb1c3ee785ddc0c327497df42c16188d1fd8.zip
[SCTP]: Fix miss of report unrecognized HMAC Algorithm parameter
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>
-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 dd98763c8b0..77383e9b398 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -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: