]> granicus.if.org Git - sudo/commitdiff
Fix exit value if check_user() returns -1.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Mar 2013 16:14:05 +0000 (11:14 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Mar 2013 16:14:05 +0000 (11:14 -0500)
--HG--
branch : 1.7

sudo.c

diff --git a/sudo.c b/sudo.c
index 1db99f4b32b1822345bcef76e3fe68bd28352b71..1e1c9db913bdea953373edb672611a3d34450f00 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -445,7 +445,7 @@ main(argc, argv, envp)
     if (rval != TRUE) {
        if (!ISSET(validated, VALIDATE_OK))
            log_denial(validated, FALSE);
-       goto done;
+       goto bad;
     }
 
     /* If run as root with SUDO_USER set, set sudo_user.pw to that user. */