commit | 4cca16f20e92a97399d5814fc810af66ce0581d8 | [log] [tgz] |
---|---|---|
author | shemminger <shemminger> | Fri Mar 10 23:31:46 2006 +0000 |
committer | shemminger <shemminger> | Fri Mar 10 23:31:46 2006 +0000 |
tree | 442ff84f0377b3aa7b82db014a23218f9f6e716d | |
parent | f3b1006c732d1abcbb39ea0c00e2c3149a5cb89d [diff] [blame] |
Fix endless loop in netlink error handling.
diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 24e1f0b..67951fe 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c
@@ -308,6 +308,9 @@ 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; }