aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSven Anders <anders@anduras.de>2009-11-10 09:07:26 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-11-10 09:07:26 -0800
commit24f38182441868f27aec03e82105eb008127e879 (patch)
tree42f80f949deea1cbc9f837dac76061c82bd6bc71 /lib
parent8a1c7fcb2756be05b55008edbd9e813f590cdf01 (diff)
downloadandroid_external_iproute2-24f38182441868f27aec03e82105eb008127e879.tar.gz
android_external_iproute2-24f38182441868f27aec03e82105eb008127e879.tar.bz2
android_external_iproute2-24f38182441868f27aec03e82105eb008127e879.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libnetlink.c2
1 files changed, 1 insertions, 1 deletions
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;