Fix memory leak.
Submitted by: itojun
This commit is contained in:
parent
77e3022c3b
commit
ef60ba4c3e
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user