summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-09-20 13:21:50 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-09-20 13:21:50 -0700
commit319093a7f2cc8b1d564ce50300c597b44461a3b8 (patch)
tree6d8ab9f32ed3ff851ef1d4cfffbaeb89d547a551
parent0409a5aacafc1228d00636c879ac147d3c2915b3 (diff)
parent2e0d58fbfe175ff5cb92e2af1d33694b24bc29bc (diff)
downloadxrdp-proprietary-319093a7f2cc8b1d564ce50300c597b44461a3b8.tar.gz
xrdp-proprietary-319093a7f2cc8b1d564ce50300c597b44461a3b8.zip
Merge branch 'devel' of github.com:neutrinolabs/xrdp into devel
-rw-r--r--sesman/verify_user_pam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sesman/verify_user_pam.c b/sesman/verify_user_pam.c
index 4d73f85d..eec12c66 100644
--- a/sesman/verify_user_pam.c
+++ b/sesman/verify_user_pam.c
@@ -122,6 +122,7 @@ auth_userpass(char *user, char *pass, int *errorcode)
*errorcode = error ;
}
g_printf("pam_start failed: %s\r\n", pam_strerror(auth_info->ph, error));
+ pam_end(auth_info->ph, error);
g_free(auth_info);
return 0;
}
@@ -135,6 +136,7 @@ auth_userpass(char *user, char *pass, int *errorcode)
}
g_printf("pam_authenticate failed: %s\r\n",
pam_strerror(auth_info->ph, error));
+ pam_end(auth_info->ph, error);
g_free(auth_info);
return 0;
}
@@ -153,6 +155,7 @@ auth_userpass(char *user, char *pass, int *errorcode)
}
g_printf("pam_acct_mgmt failed: %s\r\n",
pam_strerror(auth_info->ph, error));
+ pam_end(auth_info->ph, error);
g_free(auth_info);
return 0;
}