polypath: "address to remove not found" not an error
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Nov 2014 15:40:32 +0000 (15:40 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Nov 2014 15:42:05 +0000 (15:42 +0000)
Reduce the log severity of this message.  This can happen due to a
previous error, and does not then want to be reported again (unless
debugging is turned up).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
polypath.c

index 5ae5b04..45e875a 100644 (file)
@@ -351,7 +351,8 @@ static void polypath_record_ifaddr(struct polypath *st,
        for (i=0; i<interf->socks.n_socks; i++)
            if (iaddr_equal(&interf->socks.socks[i].addr,ia,True))
                goto address_remove_found;
-       BAD("address to remove not found");
+       bad(st,badctx,M_DEBUG,"address to remove not found",0);
+       goto out;
     address_remove_found:
        lg_perror(LG,M_INFO,0,"removed %s %s",ifname,
                  iaddr_to_string(&interf->socks.socks[i].addr));