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

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


The branch, build-main has been updated
       via  a319fb111f0aed2e66935bace03621e9fbcc1d96 (commit)
      from  55a7c6b26d599459cb8d62638cddc137906d0536 (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/x2go-auth-check.c |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

The diff of changes is:
diff --git a/src/x2go-auth-check.c b/src/x2go-auth-check.c
index 8a3fb01..1b4ad8f 100644
--- a/src/x2go-auth-check.c
+++ b/src/x2go-auth-check.c
@@ -67,23 +67,24 @@ main (int argc, char * argv[])
 
 	printf ("4\n");
 
-	int rc = -1;
-	if (ssh_connect (auth_check_ssh_session)) {
-		rc = ssh_userauth_password ( auth_check_ssh_session, NULL, password );
+	int rc;
+	rc = ssh_connect (auth_check_ssh_session)
+	if ( rc != SSH_OK ) {
+		ssh_free(auth_check_ssh_session);
+		return -1;
+	}
+
+	rc = ssh_userauth_password ( auth_check_ssh_session, NULL, password );
+	if ( rc != SSH_AUTH_SUCCESS ) {
 		ssh_disconnect(auth_check_ssh_session);
+		ssh_free(auth_check_ssh_session);
+		return -1
 	}
-	ssh_free(auth_check_ssh_session);
 
 	printf ("5\n");
 
-	int retval = -1;
-	if ( rc == SSH_AUTH_SUCCESS )
-	{
-		retval = 0;
-	}
-
 	memset(password, 0, sizeof(password));
 	munlock(password, sizeof(password));
 
-	return retval;
+	return 0;
 }


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