diff options
-rw-r--r-- | src/print_wireless_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 50cf8e4..22a9c31 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -39,7 +39,7 @@ static int get_wireless_info(const char *interface, wireless_info_t *info) { wireless_config wcfg; if (iw_get_basic_config(skfd, interface, &wcfg) < 0) { - perror("iw_get_basic_config"); + close(skfd); return 0; } |