Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec9dbb1c authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

[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: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Acked-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8cf8e5a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: