mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert part of r291137 which seems correct, bit does not fix the
resource problem I'm currently hunting down. MFC after: 1 week X-MFC with: 291137
This commit is contained in:
parent
f0e44ca337
commit
e5d23883bf
1 changed files with 4 additions and 2 deletions
|
|
@ -3640,11 +3640,13 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from)
|
|||
* macro here since le_next will get freed as part of the
|
||||
* sctp_free_assoc() call.
|
||||
*/
|
||||
if (so) {
|
||||
#ifdef IPSEC
|
||||
if (ip_pcb->inp_sp != NULL) {
|
||||
ipsec_delete_pcbpolicy(ip_pcb);
|
||||
#endif /* IPSEC */
|
||||
|
||||
/* Unlocks not needed since the socket is gone now */
|
||||
}
|
||||
#endif
|
||||
if (ip_pcb->inp_options) {
|
||||
(void)sctp_m_free(ip_pcb->inp_options);
|
||||
ip_pcb->inp_options = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue