diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index 16e89c5d6..3990d7e7b 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -178,8 +178,8 @@ verify_user(struct passwd *pw, char *prompt) goto cleanup; } #ifndef AUTH_STANDALONE - if (repl.reply) - zero_bytes(p, strlen(repl.reply)); + if (p) + zero_bytes(p, strlen(p)); #endif /* XXX - need way to know if askpass was used */ //if (!ISSET(tgetpass_flags, TGP_ASKPASS))