diff options
author | sam <sam@FreeBSD.org> | 2005-06-13 17:00:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-06-13 17:00:32 +0000 |
commit | d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0 (patch) | |
tree | 5b11e5f1130886853d82813087f4d19c53b3e668 /contrib/hostapd/ctrl_iface.c | |
parent | 15d1673cd63b48b8c42d611ff8f1b3be6c6748bc (diff) | |
download | FreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.zip FreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.tar.gz |
stripped down import of hostapd 0.3.9
Approved by: re (dwhite)
Diffstat (limited to 'contrib/hostapd/ctrl_iface.c')
-rw-r--r-- | contrib/hostapd/ctrl_iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/hostapd/ctrl_iface.c b/contrib/hostapd/ctrl_iface.c index 8cf356c..9ed109b 100644 --- a/contrib/hostapd/ctrl_iface.c +++ b/contrib/hostapd/ctrl_iface.c @@ -20,6 +20,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> +#include <sys/uio.h> #include <sys/stat.h> #include <errno.h> #include <netinet/in.h> @@ -383,7 +384,8 @@ void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) unlink(fname); free(fname); - if (rmdir(hapd->conf->ctrl_interface) < 0) { + if (hapd->conf->ctrl_interface && + rmdir(hapd->conf->ctrl_interface) < 0) { if (errno == ENOTEMPTY) { wpa_printf(MSG_DEBUG, "Control interface " "directory not empty - leaving it " |