projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
febb096
)
Fix return values of do_passwd() in apps/passwd.c
author
Richard Levitte
<levitte@openssl.org>
Mon, 1 Aug 2016 11:07:48 +0000
(13:07 +0200)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 1 Aug 2016 13:16:27 +0000
(15:16 +0200)
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>
apps/passwd.c
patch
|
blob
|
history
diff --git
a/apps/passwd.c
b/apps/passwd.c
index 31c4eef55a18ec91da4c92f978993d8c37c376af..e2c90960e5409d0e6280fa0b6a2bf06afce7eaf6 100644
(file)
--- a/
apps/passwd.c
+++ b/
apps/passwd.c
@@
-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