Don't leak skfd on errors. Don't spam stderr if the iface isn't present.

This commit is contained in:
Fernando Tarlá Cardoso Lemos 2010-06-29 20:08:21 -03:00 committed by Michael Stapelberg
parent 9db8f7221a
commit 570bc669b4

View File

@ -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;
}