sctp: sctp should release assoc when sctp_make_abort_user return NULL in sctp_close
[deliverable/linux.git] / net / sctp / socket.c
index 529ed357a2cf1543123fa85e0c55fceb76706be3..ef1d90fdc773d2ca4104c9dabc96d1058e99629a 100644 (file)
@@ -1516,8 +1516,7 @@ static void sctp_close(struct sock *sk, long timeout)
                        struct sctp_chunk *chunk;
 
                        chunk = sctp_make_abort_user(asoc, NULL, 0);
-                       if (chunk)
-                               sctp_primitive_ABORT(net, asoc, chunk);
+                       sctp_primitive_ABORT(net, asoc, chunk);
                } else
                        sctp_primitive_SHUTDOWN(net, asoc, NULL);
        }
This page took 0.035839 seconds and 5 git commands to generate.