Add missing check to fix the build with IPSEC_SUPPORT and without MAC.

Submitted by:	netchild
This commit is contained in:
Andrey V. Elsukov 2017-02-14 21:33:10 +00:00
parent db83b1436a
commit 7a60a91011
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313746

View File

@ -329,7 +329,7 @@ in_pcballoc(struct socket *so, struct inpcbinfo *pcbinfo)
inp->inp_gencnt = ++pcbinfo->ipi_gencnt;
refcount_init(&inp->inp_refcount, 1); /* Reference from inpcbinfo */
INP_LIST_WUNLOCK(pcbinfo);
#if defined(IPSEC) || defined(MAC)
#if defined(IPSEC) || defined(IPSEC_SUPPORT) || defined(MAC)
out:
if (error != 0) {
crfree(inp->inp_cred);