1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Fix memory leak.

Submitted by:	itojun
This commit is contained in:
Hajimu UMEMOTO 2001-05-23 20:41:17 +00:00
parent 4638caddb7
commit 12ae55c6f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77065

View File

@ -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 *);