Message ID | 1405612888-10755-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 7eed77a39d0d..55b015b9beec 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -380,7 +380,7 @@ void sctp_association_free(struct sctp_association *asoc) /* Only real associations count against the endpoint, so * don't bother for if this is a temporary association. */ - if (!asoc->temp) { + if (!list_empty(&asoc->asocs)) { list_del(&asoc->asocs); /* Decrement the backlog value for a TCP-style listening