From: Ralph Corderoy Date: Sun, 1 Jul 2018 08:49:28 +0000 (+0100) Subject: ruserpass.c: Return the password typed by the user. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/896f07bf3c08becc06a881f57fb0ad2160819d45 ruserpass.c: Return the password typed by the user. Darren Provine reported that entering the password didn't work. This was due to ruserpass() failing to set the password. Fixes 1d4977af. --- diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index 55694c82..2a1023f8 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -175,7 +175,7 @@ ruserpass(const char *host, char **aname, char **apass, int flags) mypass = *aname; } - *aname = mh_xstrdup(mypass); + *apass = mh_xstrdup(mypass); } }