- if (bytes != sizeof(nifs)) {
- close(con->command_fd);
- con->command_fd = -1;
- close(con->listen_fd);
- con->listen_fd = -1;
- } else {
- memcpy(&nifs, cmd, sizeof(nifs));
- /* We don't dispatch each interface here as that
- * causes too much notification spam when the GUI starts */
- for (n = 0; n < nifs; n++) {
- i = dhcpcd_read_if(con, con->command_fd);
- if (i)
- dhcpcd_wpa_if_event(i);
- }
- }
- update_status(con);
+ if (bytes != sizeof(nifs))
+ goto err_exit;
+ memcpy(&nifs, cmd, sizeof(nifs));
+ /* We don't dispatch each interface here as that
+ * causes too much notification spam when the GUI starts */
+ for (n = 0; n < nifs; n++)
+ dhcpcd_read_if(con, con->command_fd);
+
+ update_status(con, NULL);