summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-05-12 17:29:57 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-05-12 17:29:57 +0200
commitccd489515476125f2c0e900d2d94531c6f88c037 (patch)
tree704ecdb4198023df62c76534a38a65e74ef5f212
parentb25738c7099997ede646aea1058cec5d2724df83 (diff)
downloadpam_network_manager-ccd489515476125f2c0e900d2d94531c6f88c037.tar
pam_network_manager-ccd489515476125f2c0e900d2d94531c6f88c037.zip
Use pclose instead of fclose
-rw-r--r--pam_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_wlan.c b/pam_wlan.c
index 81abe8a..3fed59d 100644
--- a/pam_wlan.c
+++ b/pam_wlan.c
@@ -57,7 +57,7 @@ static int authenticate(const char *user, const char *pass) {
fputc(0, stream);
fputs(pass, stream);
- int status = fclose(stream);
+ int status = pclose(stream);
if (WIFEXITED(status))
return WEXITSTATUS(status);