Message ID | 1405959852-5309-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 31ed008..6524fa8 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -372,7 +372,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