Fix return values of do_passwd() in apps/passwd.c
do_passwd() was returning 0 on success and 1 on failure. However, those values were interpreted the other way around. The fix that makes the most sense is to change what do_passwd() returns. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
febb096c4c
commit
2a600d7afd
1 changed files with 2 additions and 2 deletions
|
@ -496,10 +496,10 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
|
|||
BIO_printf(out, "%s\t%s\n", hash, passwd);
|
||||
else
|
||||
BIO_printf(out, "%s\n", hash);
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
end:
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in a new issue