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
This commit is contained in:
Sven Anders 2009-11-10 09:07:26 -08:00 committed by Stephen Hemminger
parent 8a1c7fcb27
commit 24f3818244
1 changed files with 1 additions and 1 deletions

View File

@ -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;