mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
wpa_cli: Fix wrong comparison in wpa_cli_cmd_interface
Signed-off-by: Daichi Ueura <daichi.ueura@gmail.com>
This commit is contained in:
parent
83c4cb5217
commit
2150c33337
@ -1552,7 +1552,7 @@ static int wpa_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||
os_free(ctrl_ifname);
|
||||
ctrl_ifname = os_strdup(argv[0]);
|
||||
|
||||
if (wpa_cli_open_connection(ctrl_ifname, 1)) {
|
||||
if (wpa_cli_open_connection(ctrl_ifname, 1) == 0) {
|
||||
printf("Connected to interface '%s.\n", ctrl_ifname);
|
||||
} else {
|
||||
printf("Could not connect to interface '%s' - re-trying\n",
|
||||
|
Loading…
Reference in New Issue
Block a user