Fix memory leak.

Submitted by:	itojun
This commit is contained in:
ume 2001-05-23 20:41:17 +00:00
parent 77e3022c3b
commit ef60ba4c3e

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