From: Sven Anders Date: Tue, 10 Nov 2009 17:07:26 +0000 (-0800) Subject: Fix flushing code - rtnl_send_check X-Git-Tag: v2.6.31~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24f38182441868f27aec03e82105eb008127e879;p=thirdparty%2Fiproute2.git Fix flushing code - rtnl_send_check I experienced an error, if I try to perform a ip route flush proto 4 with many routes in a complex environment, it gave me the following error: Failed to send flush request: Success Flush terminated --- diff --git a/lib/libnetlink.c b/lib/libnetlink.c index b68e2fdb0..100dd4078 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -137,8 +137,8 @@ int rtnl_send_check(struct rtnl_handle *rth, const char *buf, int len) fprintf(stderr, "ERROR truncated\n"); else errno = -err->error; + return -1; } - return -1; } return 0;