From: Sven Anders Date: Tue, 10 Nov 2009 17:07:26 +0000 (-0800) Subject: Fix flushing code - rtnl_send_check X-Git-Url: https://rtime.felk.cvut.cz/gitweb/lisovros/iproute2_canprio.git/commitdiff_plain/24f38182441868f27aec03e82105eb008127e879 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 b68e2fd..100dd40 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;