fix problem caused by rtnl_send checks
Some usages of rtnl_send could cause errors (ie flush requests)
others do a listen afterwards.
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 6dc61eb..0a34ace 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -316,7 +316,7 @@
static int flush_update(void)
{
- if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
+ if (rtnl_send_check(&rth, filter.flushb, filter.flushp) < 0) {
perror("Failed to send flush request");
return -1;
}