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 <levitte@openssl.org>
This commit is contained in:
Matt Caswell 2016-04-26 17:00:33 +01:00
parent 33ea23dc5c
commit 97b04399b6
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}