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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291138
@ -537,9 +537,10 @@ sctp_attach(struct socket *so, int proto SCTP_UNUSED, struct thread *p SCTP_UNUS
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
}
|
||||
}
|
||||
so->so_pcb = NULL;
|
||||
return (error);
|
||||
}
|
||||
#endif /* IPSEC */
|
||||
#endif
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user