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
7aabe9d9e0
commit
3d2443cc84
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226203
@ -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