mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue