When moving an stcb to a new inp and we copy over the list of
bound addresses, update the last used address pointer. If not, it might result in a crash if the old inp goes away. MFC after: 3 days.
This commit is contained in:
parent
3767cab953
commit
43477149d3
@ -2786,6 +2786,9 @@ sctp_move_pcb_and_assoc(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp,
|
||||
LIST_INSERT_HEAD(&new_inp->sctp_addr_list, laddr,
|
||||
sctp_nxt_addr);
|
||||
new_inp->laddr_count++;
|
||||
if (oladdr == stcb->asoc.last_used_address) {
|
||||
stcb->asoc.last_used_address = laddr;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user