[SCTP]: Fix miss of report unrecognized HMAC Algorithm parameter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 1, 2008 - 4:00 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ec9dbb...
Commit:     ec9dbb1c3ee785ddc0c327497df42c16188d1fd8
Parent:     8cf8e5a67fb07f583aac94482ba51a7930dab493
Author:     Wei Yongjun <yjwei@cn.fujitsu.com>
AuthorDate: Mon Jan 28 20:58:46 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Jan 31 19:27:09 2008 -0800

    [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>
---
 net/sctp/sm_make_chunk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index dd98763..77383e9 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:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCTP]: Fix miss of report unrecognized HMAC Algorithm par ..., Linux Kernel Mailing ..., (Fri Feb 1, 4:00 am)