Commit 4cca16f2 authored by shemminger's avatar shemminger

Fix endless loop in netlink error handling.

parent f3b1006c
2006-03-10 Jean Tourrilhes <jt@hpl.hp.com>
* Fix endless loop in netlink error handling
2006-03-10 Russell Stuart <russell-lartc@stuart.id.au>
* Fix missing memset in tc sample
2006-03-10 shemminger <shemminger@osdl.org>
2006-03-10 Stephen Hemminger <shemminger@osdl.org>
* Change default lnstat count to 1
* Update to 2.6.16 headers
......
......@@ -308,6 +308,9 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
if (err < 0)
return err;
}
/* Don't forget to skip that message. */
status -= NLMSG_ALIGN(len);
h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment