[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 25d86806c68b6eaaf0b84c7ffd1150bbc24d2967
X2Go dev team
git-admin at x2go.org
Sat Apr 27 13:45:39 CEST 2013
The branch, build-main has been updated
via 25d86806c68b6eaaf0b84c7ffd1150bbc24d2967 (commit)
from 1459c8b3b7b4079b222af372faa10f360d5b23b4 (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 | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
The diff of changes is:
diff --git a/src/x2go-auth-check.c b/src/x2go-auth-check.c
index 8dfc38f..60ca16b 100644
--- a/src/x2go-auth-check.c
+++ b/src/x2go-auth-check.c
@@ -36,12 +36,12 @@ main (int argc, char * argv[])
return -1;
}
- auth_check_ssh_session = ssh_new();
+ ssh_session auth_check_ssh_session = ssh_new();
ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_HOST, argv[1] );
ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_USER, argv[2] );
- int rc = ssh_connect (ssh_session);
+ ssh_connect ( auth_check_ssh_session );
char * colonloc = strstr(argv[1], ":");
if (colonloc != NULL) {
@@ -52,10 +52,12 @@ main (int argc, char * argv[])
ssh_options_set ( auth_check_ssh_session, SSH_OPTIONS_PORT, strtoul(colonloc, NULL, 10) );
}
- if (ssh_connect (ssh_session)) {
- int rc = ssh_userauth_password ( auth_check_ssh_session, NULL, password );
- ssh_disconnect(ssh_session);
+ int rc = -1;
+ if (ssh_connect (auth_check_ssh_session)) {
+ rc = ssh_userauth_password ( auth_check_ssh_session, NULL, password );
+ ssh_disconnect(auth_check_ssh_session);
}
+ ssh_free(auth_check_ssh_session);
int retval = -1;
if ( rc == SSH_AUTH_SUCCESS )
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