Fix endless loop in netlink error handling.

This commit is contained in:
shemminger 2006-03-10 23:31:46 +00:00
parent f3b1006c73
commit 4cca16f20e
2 changed files with 8 additions and 1 deletions

View File

@ -1,8 +1,12 @@
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

View File

@ -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;
}