Clear the so_pcb pointer in case of ipsec_init_policy() fails.
MFC after: 1 week
This commit is contained in:
parent
8ca16419bb
commit
722281c070
@ -537,9 +537,10 @@ try_again:
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
}
|
||||
}
|
||||
so->so_pcb = NULL;
|
||||
return (error);
|
||||
}
|
||||
#endif /* IPSEC */
|
||||
#endif
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user