]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't report deleteing a non existant address on FreeBSD.
authorRoy Marples <roy@marples.name>
Sat, 19 Jul 2008 14:04:18 +0000 (14:04 +0000)
committerRoy Marples <roy@marples.name>
Sat, 19 Jul 2008 14:04:18 +0000 (14:04 +0000)
configure.c

index 47c9bcc48b712e81c02545a033651dac6e568c04..5e74805544f09a19903201cf57351d55e61a1054 100644 (file)
@@ -411,7 +411,7 @@ delete_address(struct interface *iface)
               inet_ntoa(iface->addr),
               inet_ntocidr(iface->net));
        retval = del_address(iface->name, &iface->addr, &iface->net);
-       if (retval == -1 && errno != ENOENT) 
+       if (retval == -1 && errno != ENOENT && errno != EADDRNOTAVAIL
                logger(LOG_ERR, "del_address: %s", strerror(errno));
        iface->addr.s_addr = 0;
        iface->net.s_addr = 0;