]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log an error when deleting IPv6 addresses that doesn't exist.
authorRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:17:44 +0000 (23:17 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:17:44 +0000 (23:17 +0000)
dhcp6.c
ipv6rs.c

diff --git a/dhcp6.c b/dhcp6.c
index 379964c5788dffc5b59a3c815831c3776701688f..9d1e81fe3412f246cb62867196af03547d1ff1bf 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -618,7 +618,8 @@ dhcp6_freedrop_addrs(struct interface *ifp, int drop)
                {
                        syslog(LOG_INFO, "%s: deleting address %s",
                            ifp->name, ap->saddr);
-                       if (del_address6(ifp, ap) == -1)
+                       if (del_address6(ifp, ap) == -1 &&
+                           errno != EADDRNOTAVAIL)
                                syslog(LOG_ERR, "del_address6 %m");
                }
                free(ap);
index 34473b43c32bbf57c96a1a3eacf76512ddf9ee8b..a231bcfb0fef4f98f4b2e3d8f239ec18ca5c19fe 100644 (file)
--- a/ipv6rs.c
+++ b/ipv6rs.c
@@ -324,7 +324,8 @@ ipv6rs_freedrop_addrs(struct ra *rap, int drop)
                {
                        syslog(LOG_INFO, "%s: deleting address %s",
                            rap->iface->name, ap->saddr);
-                       if (del_address6(rap->iface, ap) == -1)
+                       if (del_address6(rap->iface, ap) == -1 &&
+                           errno != EADDRNOTAVAIL)
                                syslog(LOG_ERR, "del_address6 %m");
                }
                free(ap);