Message ID | 1403779070-13901-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 ab67efc64b24..619c781e6691 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -381,7 +381,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