From: Matt Caswell Date: Tue, 26 Apr 2016 16:00:33 +0000 (+0100) Subject: Fix passwd seg fault X-Git-Tag: OpenSSL_1_1_0-pre6~1050 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97b04399b6b20d59ce4898def02011ee80914638;p=openssl Fix passwd seg fault Passing the -stdin arg to the passwd command line app *and* supply a password on the command line causes a seg fault. Reviewed-by: Richard Levitte --- diff --git a/apps/passwd.c b/apps/passwd.c index 98092bb04b..2f114db05c 100644 --- a/apps/passwd.c +++ b/apps/passwd.c @@ -175,6 +175,7 @@ int passwd_main(int argc, char **argv) if (pw_source_defined) goto opthelp; in_stdin = 1; + pw_source_defined = 1; break; } }