diff options
author | ume <ume@FreeBSD.org> | 2001-05-23 20:41:17 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-05-23 20:41:17 +0000 |
commit | ef60ba4c3e56a1fc4216a3f4cee7aecd773c2172 (patch) | |
tree | 8b615d0e942f3d4102d7b4faac1fc292a87f62d4 /sys/netinet6 | |
parent | 77e3022c3b05b209931b0b1b23b59dcf2ffd1a82 (diff) | |
download | FreeBSD-src-ef60ba4c3e56a1fc4216a3f4cee7aecd773c2172.zip FreeBSD-src-ef60ba4c3e56a1fc4216a3f4cee7aecd773c2172.tar.gz |
Fix memory leak.
Submitted by: itojun
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 88f3b4d..4176bc4 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -2001,6 +2001,8 @@ ip6_setpktoptions(control, opt, priv) if (control->m_next) return(EINVAL); + opt->ip6po_m = control; + for (; control->m_len; control->m_data += ALIGN(cm->cmsg_len), control->m_len -= ALIGN(cm->cmsg_len)) { cm = mtod(control, struct cmsghdr *); |