diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/chpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index 25145fd..c83d1da 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c @@ -65,8 +65,8 @@ int chpasswd_main(int argc UNUSED_PARAM, char **argv) bb_info_msg("Password for '%s' changed", name); logmode = LOGMODE_STDIO; free(name); - free(pass); + if (!(opt & OPT_ENC)) + free(pass); } - - return 0; + return EXIT_SUCCESS; } |