[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 5cabdb8b73427e5a95122d261f7d4243637d8e4d

X2Go dev team git-admin at x2go.org
Sat Apr 27 13:45:33 CEST 2013


The branch, build-main has been updated
       via  5cabdb8b73427e5a95122d261f7d4243637d8e4d (commit)
      from  71d3d4aca6c9f2024f4ba84ba285705b4d74600d (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 |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 89c5d5d..0e5c3fa 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -150,8 +150,13 @@ get_item (pam_handle_t * pamh, int type)
 				free(global_password);
 			}
 			global_password = strdup(promptval);
-			mlock(global_password, strlen(global_password));
-			retval = global_password;
+			if (mlock(global_password, strlen(global_password)) != 0) {
+				/* Woah, can't lock it.  Can't keep it. */
+				free(global_password);
+				global_password = NULL;
+			} else {
+				retval = global_password;
+			}
 		}
 
 		free(promptval);


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