[X2Go-Commits] libpam-x2go.git - x2gosession (branch) updated: 8a85c086263fda4baea7128592fefedb61f83aee

X2Go dev team git-admin at x2go.org
Wed Apr 24 18:47:23 CEST 2013


The branch, x2gosession has been updated
       via  8a85c086263fda4baea7128592fefedb61f83aee (commit)
      from  1708318511cf61c58913e8f14a8fb56ff1510bdd (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 |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 0277e0c..d1a6578 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -88,14 +88,14 @@ get_item (pam_handle_t * pamh, int type)
 	free(responses);
 
 	if (type == PAM_RHOST) {
-		char * subloc = NULL;
-		if ((subloc = strstr(retval, "://")) != NULL) {
+		char * subloc = strstr(retval, "://");
+		if (subloc != NULL) {
 			char * original = retval;
-			char * newish = retval + strlen("://");
-			char * c = strstr(newish, "/");
+			char * newish = subloc + strlen("://");
+			char * endslash = strstr(newish, "/");
 
-			if (c != NULL) {
-				c[0] = '\0';
+			if (endslash != NULL) {
+				endslash[0] = '\0';
 			}
 
 			retval = strdup(newish);


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