diff options
author | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 16:21:51 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 17:51:24 -0800 |
commit | 1b201cde7dd9ec708f33098a2468a01104b35784 (patch) | |
tree | 495cad3422e7c584f3dd94addc4294e2e682db9f | |
parent | 7a09f4dd2ace905831cb60cf4c8f5a9ca855123f (diff) | |
download | crda-1b201cde7dd9ec708f33098a2468a01104b35784.tar.gz crda-1b201cde7dd9ec708f33098a2468a01104b35784.tar.bz2 crda-1b201cde7dd9ec708f33098a2468a01104b35784.zip |
crda: close fd upon leaving
This was never done. Do this at the end for now but soon
this will be changed in preference for the file opening
only to be done by crda for checking which file to use
to pass on to reglib for usage.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
-rw-r--r-- | crda.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -10,6 +10,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <arpa/inet.h> +#include <unistd.h> #include <netlink/genl/genl.h> #include <netlink/genl/family.h> @@ -333,5 +334,7 @@ nla_put_failure: nlmsg_free(msg); out: nl80211_cleanup(&nlstate); + close(fd); + return r; } |