From: david decotigny Date: Fri, 11 Nov 2016 18:55:37 +0000 (-0800) Subject: iproute2: a non-expected rtnl message is an error X-Git-Tag: v4.9.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7b97776e3a2e019de8d840f9714db89da60a94;p=thirdparty%2Fiproute2.git iproute2: a non-expected rtnl message is an error --- diff --git a/ip/iproute.c b/ip/iproute.c index dae793b75..10d0afe7b 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -320,7 +320,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) { fprintf(stderr, "Not a route: %08x %08x %08x\n", n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); - return 0; + return -1; } if (filter.flushb && n->nlmsg_type != RTM_NEWROUTE) return 0;