From d2b8bad2a59e47708f73f0b670e69ae0ae4d8b3a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 19 May 2010 11:40:46 -0400 Subject: [PATCH] Fix compilation for non PAM/BSD auth/AIX auth --- plugins/sudoers/auth/sudo_auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))