[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 6e7601e14089a79aec2accfa800c259049449b8e
X2Go dev team
git-admin at x2go.org
Sat Apr 27 13:45:31 CEST 2013
The branch, build-main has been updated
via 6e7601e14089a79aec2accfa800c259049449b8e (commit)
from 817ff829b60891959d4b947fbd79c7bd3e2e67dd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
src/pam-freerdp.c | 4 ++++
1 file changed, 4 insertions(+)
The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index e284619..f635162 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -23,6 +23,7 @@
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/mman.h>
#include <sys/un.h>
#include <pwd.h>
@@ -128,9 +129,12 @@ get_item (pam_handle_t * pamh, int type)
}
if (type == PAM_AUTHTOK) {
if (global_password != NULL) {
+ memset(global_password, 0, strlen(global_password));
+ munlock(global_password, strlen(global_password));
free(global_password);
}
global_password = strdup(retval);
+ mlock(global_password, strlen(global_password));
}
}
hooks/post-receive
--
libpam-x2go.git (Remote login session via X2Go (PAM module))
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).
More information about the x2go-commits
mailing list