summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2016-01-16 18:15:41 +0000
committertuexen <tuexen@FreeBSD.org>2016-01-16 18:15:41 +0000
commit4c424eca5670f6df1b25f12be2a48b560b503789 (patch)
tree31fb95828540684d65ac6061c680abc10e8013af /sys/netinet
parent0e3a8a377db0c9911339cedca6bf61c8b1212fe2 (diff)
downloadFreeBSD-src-4c424eca5670f6df1b25f12be2a48b560b503789.zip
FreeBSD-src-4c424eca5670f6df1b25f12be2a48b560b503789.tar.gz
MFC r291138:
Clear the so_pcb pointer in case of ipsec_init_policy() fails.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index bd1b81a..fa816c1 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -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);
}
OpenPOWER on IntegriCloud