Skip to content

Commit ee8c3e2

Browse files
krish2718rlubos
authored andcommitted
modules: wfa-qt: Fix return for failures
In case of errors, return after logging, else errors are ignored. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent c504f31 commit ee8c3e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/wfa-qt/src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ void qt_main(void)
5353
ret = wpa_supp_events_register();
5454
if (ret < 0) {
5555
LOG_ERR("Failed to register WPA supplicant events");
56+
return;
5657
}
5758

5859
ret = wait_for_wpa_s_ready();
5960
if (ret < 0) {
6061
LOG_ERR("Failed to wait for WPA supplicant to be ready");
62+
return;
6163
}
6264

6365
/* Register the callback */
@@ -72,6 +74,7 @@ void qt_main(void)
7274
qt_eloop_run();
7375
} else {
7476
LOG_ERR("Failed to initiate the UDP socket: %s", strerror(errno));
77+
return;
7578
}
7679

7780
/* Stop eloop */

0 commit comments

Comments
 (0)