|
@@ -954,7 +954,7 @@ static void sctp_cmd_del_non_primary(struct sctp_association *asoc)
|
|
t = list_entry(pos, struct sctp_transport, transports);
|
|
t = list_entry(pos, struct sctp_transport, transports);
|
|
if (!sctp_cmp_addr_exact(&t->ipaddr,
|
|
if (!sctp_cmp_addr_exact(&t->ipaddr,
|
|
&asoc->peer.primary_addr)) {
|
|
&asoc->peer.primary_addr)) {
|
|
- sctp_assoc_del_peer(asoc, &t->ipaddr);
|
|
|
|
|
|
+ sctp_assoc_rm_peer(asoc, t);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|