From: Todd C. Miller Date: Wed, 19 May 2010 15:40:46 +0000 (-0400) Subject: Fix compilation for non PAM/BSD auth/AIX auth X-Git-Tag: SUDO_1_8_0~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2b8bad2a59e47708f73f0b670e69ae0ae4d8b3a;p=sudo Fix compilation for non PAM/BSD auth/AIX auth --- 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))