]> granicus.if.org Git - sudo/commitdiff
Fix compilation for non PAM/BSD auth/AIX auth
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 May 2010 15:40:46 +0000 (11:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 May 2010 15:40:46 +0000 (11:40 -0400)
plugins/sudoers/auth/sudo_auth.c

index 16e89c5d689c5aff70d7e77cc96d826e5373291e..3990d7e7b88c62aeb25fbfafde5ba1172c0733a8 100644 (file)
@@ -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))