sctp: fix bogus if statement in sctp_auth_recv_cid()
Subsystems (4)
PATCH 1/1 sctp: fix bogus if statement in sctp_auth_recv_cid()
There is an extra semi-colon here, so we always return 0 instead of calling __sctp_auth_cid().
Signed-off-by Dan Carpenter <[email protected]>
---
Only needed for linux-next.
net/sctp/auth.c +1 -1
@@ -695,7 +695,7 @@ int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc)return 0 ; net =sock_net (asoc->base.sk); -if (!net->sctp.auth_enable); +if (!net->sctp.auth_enable)return 0 ; return __sctp_auth_cid(chunk,
Quoted 2 lines · Dan Carpenter
There is an extra semi-colon here, so we always return 0 instead of calling
__sctp_auth_cid().
Doh.
Reviewed-by "Eric W. Biederman" <[email protected]>
Quoted 18 lines
Signed-off-by Dan Carpenter <[email protected]>---
Only needed for linux-next.net/sctp/auth.c +1
-1@@ -695,7 +695,7 @@ int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc)return 0 ; net =sock_net (asoc->base.sk); -if (!net->sctp.auth_enable); +if (!net->sctp.auth_enable)return 0 ; return __sctp_auth_cid(chunk,
From: [email protected] (Eric W. Biederman)
Date: Thu, 16 Aug 2012 11:23:35 -0700
Quoted 8 lines
Quoted 2 lines · Dan Carpenter
There is an extra semi-colon here, so we always return 0 instead of calling
__sctp_auth_cid().Doh.
Reviewed-by "Eric W. Biederman" <[email protected]>
Applied.