Skip to content

Commit 0c3e1cd

Browse files
geki-yabarsmarples
authored andcommitted
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.
1 parent 1a1631f commit 0c3e1cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libdhcpcd/dhcpcd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,9 @@ dhcpcd_open(DHCPCD_CONNECTION *con, bool privileged)
10711071
/* We don't dispatch each interface here as that
10721072
* causes too much notification spam when the GUI starts */
10731073
for (n = 0; n < nifs; n++) {
1074-
if (dhcpcd_read_if(con, con->command_fd) == NULL)
1075-
goto err_exit;
1074+
/* Some interface states we do not create an interface for
1075+
* such as DHS_INFORM. */
1076+
dhcpcd_read_if(con, con->command_fd);
10761077
}
10771078

10781079
update_status(con, DHC_UNKNOWN);

0 commit comments

Comments
 (0)