]> diplodocus.org Git - nmh/commitdiff
ruserpass.c: Return the password typed by the user.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 08:49:28 +0000 (09:49 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 10:12:43 +0000 (11:12 +0100)
Darren Provine reported that entering the password didn't work.  This
was due to ruserpass() failing to set the password.  Fixes 1d4977af.

sbr/ruserpass.c

index 55694c8..2a1023f 100644 (file)
@@ -175,7 +175,7 @@ ruserpass(const char *host, char **aname, char **apass, int flags)
            mypass = *aname;
        }
 
            mypass = *aname;
        }
 
-        *aname = mh_xstrdup(mypass);
+        *apass = mh_xstrdup(mypass);
     }
 
 }
     }
 
 }