Message ID | 1300877806-3949-1-git-send-email-zecke@selfish.org |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index b2bed35..5f72996 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -393,9 +393,8 @@ SCTP_STATIC int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len) * detection. */ addr->v4.sin_port = htons(snum); - if ((ret = sctp_get_port_local(sk, addr))) { + if (sctp_get_port_local(sk, addr)) return -EADDRINUSE; - } /* Refresh ephemeral port. */ if (!bp->port)