Skip to content

Commit

Permalink
sctp: fix bogus if statement in sctp_auth_recv_cid()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Aug 16, 2012
1 parent 6932f11 commit 02644a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 02644a1

Please sign in to comment.