Commit 6c8fee00 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix local notification of interfaces when there's no link-local address.

Thanks to Christof Schulze for noticing the problem.
parent e6dcfae1
...@@ -106,8 +106,8 @@ local_notify_interface_1(struct local_socket *s, ...@@ -106,8 +106,8 @@ local_notify_interface_1(struct local_socket *s,
rc = snprintf(buf, 512, rc = snprintf(buf, 512,
"%s interface %s up true%s%s%s%s\n", "%s interface %s up true%s%s%s%s\n",
local_kind(kind), ifp->name, local_kind(kind), ifp->name,
ifp->ll ? " ipv6 " : "", ifp->numll > 0 ? " ipv6 " : "",
ifp->ll ? format_address(*ifp->ll) : "", ifp->numll > 0 ? format_address(ifp->ll[0]) : "",
v4[0] ? " ipv4 " : "", v4); v4[0] ? " ipv4 " : "", v4);
else else
rc = snprintf(buf, 512, "%s interface %s up false\n", rc = snprintf(buf, 512, "%s interface %s up false\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment