Clear the so_pcb pointer in case of ipsec_init_policy() fails.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-11-21 16:32:14 +00:00
parent 8ca16419bb
commit 722281c070
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291138

View File

@ -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);
}