|
@@ -864,6 +864,7 @@ static void sctp_cmd_delete_tcb(sctp_cmd_seq_t *cmds,
|
|
|
(!asoc->temp) && (sk->sk_shutdown != SHUTDOWN_MASK))
|
|
|
return;
|
|
|
|
|
|
+ BUG_ON(asoc->peer.primary_path == NULL);
|
|
|
sctp_unhash_established(asoc);
|
|
|
sctp_association_free(asoc);
|
|
|
}
|
|
@@ -1274,8 +1275,10 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
|
|
|
sctp_outq_uncork(&asoc->outqueue);
|
|
|
local_cork = 0;
|
|
|
}
|
|
|
- asoc = cmd->obj.asoc;
|
|
|
+
|
|
|
/* Register with the endpoint. */
|
|
|
+ asoc = cmd->obj.asoc;
|
|
|
+ BUG_ON(asoc->peer.primary_path == NULL);
|
|
|
sctp_endpoint_add_asoc(ep, asoc);
|
|
|
sctp_hash_established(asoc);
|
|
|
break;
|