summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-05 20:11:44 +0000
committerRoy Marples <roy@marples.name>2016-09-05 20:11:44 +0000
commit41c70c8c474859124d312e2f1ef0578cfbbbf32b (patch)
tree8475563df902381ff0c3c6110161060b61d23897 /ipv6.c
parentb1fa020896cff90b6be3e06637d040915089f4cc (diff)
downloaddhcpcd-41c70c8c474859124d312e2f1ef0578cfbbbf32b.tar.xz
Dodge more errors when deleting not available anymore.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipv6.c b/ipv6.c
index 0df156ca..a43301d1 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -601,8 +601,9 @@ ipv6_deleteaddr(struct ipv6_addr *ia)
logger(ia->iface->ctx, LOG_INFO, "%s: deleting address %s",
ia->iface->name, ia->saddr);
if (if_address6(RTM_DELADDR, ia) == -1 &&
- errno != EADDRNOTAVAIL && errno != ENXIO && errno != ENODEV)
- logger(ia->iface->ctx, LOG_ERR, "if_address6: :%m");
+ errno != EADDRNOTAVAIL && errno != ESRCH &&
+ errno != ENXIO && errno != ENODEV)
+ logger(ia->iface->ctx, LOG_ERR, "if_address6: %m");
/* NOREJECT is set if we delegated exactly the prefix to another
* address.