diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-03-09 14:57:16 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-03-09 14:57:16 +0000 |
| commit | f63e7634ac231cf8d68ca60f1716f15fce01950f (patch) | |
| tree | 9d8e0e6c77731053cb27e4a1e7e73d6e20318f15 /sys/netinet6/ip6_output.c | |
| parent | 283073b4e6227e899f55859974eb35930dce9af8 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/ip6_output.c')
| -rw-r--r-- | sys/netinet6/ip6_output.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index fb8545418fb6..c7d0499611df 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1509,19 +1509,17 @@ ip6_ctloutput(so, sopt) #ifdef IPSEC case IPV6_IPSEC_POLICY: { + + struct mbuf *m = NULL; caddr_t req = NULL; - int len = 0; - struct mbuf *m; - struct mbuf **mp = &m; - if (m != 0) { + if (m != 0) req = mtod(m, caddr_t); - len = m->m_len; - } - error = ipsec6_get_policy(in6p, req, mp); + error = ipsec6_get_policy(in6p, req, &m); if (error == 0) error = soopt_mcopyout(sopt, m); /*XXX*/ - m_freem(m); + if (error == 0) + m_freem(m); break; } #endif /* IPSEC */ |
