Use the SCTP level pointer, not the interface level.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2016-02-19 11:25:18 +00:00
parent b38523dc0f
commit 64a3a6304e

View File

@ -5432,7 +5432,7 @@ sctp_select_primary_destination(struct sctp_tcb *stcb)
/*
* Delete the address from the endpoint local address list There is nothing
* Delete the address from the endpoint local address list. There is nothing
* to be done if we are bound to all addresses
*/
void
@ -5483,8 +5483,7 @@ sctp_del_local_addr_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa)
* to laddr
*/
TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
if (net->ro._s_addr &&
(net->ro._s_addr->ifa == laddr->ifa)) {
if (net->ro._s_addr == laddr->ifa) {
/* Yep, purge src address selected */
sctp_rtentry_t *rt;