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

View File

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