Fix return values of do_passwd() in apps/passwd.c
authorRichard Levitte <levitte@openssl.org>
Mon, 1 Aug 2016 11:07:48 +0000 (13:07 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 1 Aug 2016 13:16:27 +0000 (15:16 +0200)
commit2a600d7afd55ed71076e9c41469f6bba72d1f313
treed1dcd796d81e263e986cbffbcc8af1f5a74b126b
parentfebb096c4c5d927c3f48f22adce64839721e79dc
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>
apps/passwd.c