ndp: fix wrong interface name in syslog message
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 27 Apr 2017 16:16:11 +0000 (18:16 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 27 Apr 2017 16:16:11 +0000 (18:16 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/ndp.c

index 97a471338ca843a71f6a126379b8071e93fbe5d1..1e3714eb8a810c13331bf6a4d4d655ebbc5502c6 100644 (file)
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -407,10 +407,10 @@ static void setup_addr_for_relaying(struct in6_addr *addr, struct interface *ifa
 
                if (odhcpd_setup_proxy_neigh(addr, c, add))
                        syslog(LOG_DEBUG, "Failed to %s proxy neighbour entry %s%%%s",
-                               add ? "add" : "delete", ipbuf, iface->ifname);
+                               add ? "add" : "delete", ipbuf, c->ifname);
                else
                        syslog(LOG_DEBUG, "%s proxy neighbour entry %s%%%s",
-                               add ? "Added" : "Deleted", ipbuf, iface->ifname);
+                               add ? "Added" : "Deleted", ipbuf, c->ifname);
        }
 }