blob: 842dc57af58c6cfe194da198fbc99a6297d09683 [file] [log] [blame]
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -751,7 +751,7 @@ ssize_t netlink_get_interface_addrs(int
while (ctxt.pending > 0)
nl_recvmsgs(rtnl_socket, cb);
- if (ctxt.ret <= 0)
+ if (ctxt.ret <= 0 || !*addrs)
goto free;
time_t now = odhcpd_time();