summaryrefslogtreecommitdiffstats
path: root/net/sctp/auth.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-08-16 03:16:19 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-16 13:36:29 -0700
commit02644a17457414f38e29f32d5c640b06d08fa092 (patch)
tree122e7f35220b288df9c734cf15595a1e809fb345 /net/sctp/auth.c
parent6932f119bd71a315a1945276377277d91c4a71c6 (diff)
downloadop-kernel-dev-02644a17457414f38e29f32d5c640b06d08fa092.zip
op-kernel-dev-02644a17457414f38e29f32d5c640b06d08fa092.tar.gz
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 <dan.carpenter@oracle.com> Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/auth.c')
-rw-r--r--net/sctp/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/auth.c b/net/sctp/auth.c
index aaa6c12..159b9bc 100644
--- a/net/sctp/auth.c
+++ b/net/sctp/auth.c
@@ -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,
OpenPOWER on IntegriCloud