diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-11-21 16:32:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-11-21 16:32:14 +0000 |
commit | b16f8900a2fce1f88566b257660b4f428b134600 (patch) | |
tree | 60b817fc87fe258cf483f243fa7d539480506dd5 /sys/netinet | |
parent | 4dc6ac08561c9a3bcb7f8f1f238abd9f51a4b0b4 (diff) | |
download | FreeBSD-src-b16f8900a2fce1f88566b257660b4f428b134600.zip FreeBSD-src-b16f8900a2fce1f88566b257660b4f428b134600.tar.gz |
Clear the so_pcb pointer in case of ipsec_init_policy() fails.
MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 3 |
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); } |