libdhcpcd: Work once more with data which does not yield an interface
authorHanno Zysik <h.mth@web.de>
Wed, 2 Dec 2020 13:37:07 +0000 (13:37 +0000)
committerRoy Marples <roy@marples.name>
Tue, 8 Dec 2020 16:09:46 +0000 (16:09 +0000)
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

index f1d663f1c3c3b31fe9dc351886a074225d25c8fa..0168763600e31ec934fc098c8f6512051b55a135 100644 (file)
@@ -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);