Don't leak skfd on errors. Don't spam stderr if the iface isn't present.
This commit is contained in:
parent
9db8f7221a
commit
570bc669b4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user