aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netlink.c b/netlink.c
index 9e7cccb..20de9b3 100644
--- a/netlink.c
+++ b/netlink.c
@@ -525,7 +525,8 @@ int nl_route_dup(int s_src, unsigned int ifi_src,
}
}
- if (!NLMSG_OK(nh, status) || status > 0) {
+ if (nh->nlmsg_type != NLMSG_DONE &&
+ (!NLMSG_OK(nh, status) || status > 0)) {
/* Process any remaining datagrams in a different
* buffer so we don't overwrite the first one.
*/