]> granicus.if.org Git - sudo/commitdiff
Get rid of done: label. If the child exits we still need to close
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 24 Oct 2011 15:14:20 +0000 (11:14 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 24 Oct 2011 15:14:20 +0000 (11:14 -0400)
the pty, update utmp and restore the SELinux tty context.

src/exec.c

index 3853d347adbcad7b2c088e9ed3707e978f75969d..2d6d8605f470f599b27000f621082ccfaf643382 100644 (file)
@@ -341,7 +341,7 @@ sudo_execve(struct command_details *details, struct command_status *cstat)
            n = handle_signals(signal_pipe[0], child, log_io, cstat);
            if (n == 0) {
                /* Child has exited, cstat is set, we are done. */
-               goto done;
+               break;
            }
            if (n == -1) {
                /* Error reading signal_pipe[0], should not happen. */
@@ -405,7 +405,6 @@ sudo_execve(struct command_details *details, struct command_status *cstat)
     }
 #endif
 
-done:
     efree(fdsr);
     efree(fdsw);
     while (!tq_empty(&sigfwd_list)) {