From 24f38182441868f27aec03e82105eb008127e879 Mon Sep 17 00:00:00 2001 From: Sven Anders Date: Tue, 10 Nov 2009 09:07:26 -0800 Subject: [PATCH] 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 --- lib/libnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2