From 0c3e1cdef3f866c60d9669fc28b4213bbf6ed6fd Mon Sep 17 00:00:00 2001 From: Hanno Zysik Date: Wed, 2 Dec 2020 13:37:07 +0000 Subject: libdhcpcd: Work once more with data which does not yield an interface Such has INFORM6. An interface could not be created for other reasons, so just read all the data and try to create all interfaces from it. --- src/libdhcpcd/dhcpcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libdhcpcd/dhcpcd.c b/src/libdhcpcd/dhcpcd.c index f1d663f..0168763 100644 --- a/src/libdhcpcd/dhcpcd.c +++ b/src/libdhcpcd/dhcpcd.c @@ -1071,8 +1071,9 @@ dhcpcd_open(DHCPCD_CONNECTION *con, bool privileged) /* We don't dispatch each interface here as that * causes too much notification spam when the GUI starts */ for (n = 0; n < nifs; n++) { - if (dhcpcd_read_if(con, con->command_fd) == NULL) - goto err_exit; + /* Some interface states we do not create an interface for + * such as DHS_INFORM. */ + dhcpcd_read_if(con, con->command_fd); } update_status(con, DHC_UNKNOWN); -- cgit v1.2.3