diff options
| author | Hanno Zysik <h.mth@web.de> | 2020-12-02 13:37:07 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-12-08 16:09:46 +0000 |
| commit | 0c3e1cdef3f866c60d9669fc28b4213bbf6ed6fd (patch) | |
| tree | 0fc46abe10b9c441cc52491b859376d2d17bcd9f | |
| parent | 1a1631f3db42e2d9a7022cdd8d697a65b551ce24 (diff) | |
| download | dhcpcd-ui-0c3e1cdef3f866c60d9669fc28b4213bbf6ed6fd.tar.xz | |
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.
| -rw-r--r-- | src/libdhcpcd/dhcpcd.c | 5 |
1 files 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); |
