]> err.no Git - linux-2.6/commitdiff
[SCTP]: Fix miss of report unrecognized HMAC Algorithm parameter
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 29 Jan 2008 04:58:46 +0000 (20:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:09 +0000 (19:27 -0800)
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>
net/sctp/sm_make_chunk.c

index dd98763c8b006de560201e454b5003d1197df828..77383e9b398833e698ad3ab72597160250451443 100644 (file)
@@ -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: