]> granicus.if.org Git - sudo/commitdiff
Don't free the new tty context, we need to keep it around when we restore the tty...
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 20 Feb 2008 17:00:40 +0000 (17:00 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 20 Feb 2008 17:00:40 +0000 (17:00 +0000)
selinux.c

index e225efffc0cdc6706948d0131c9b32a0174b2518..202e233e33fc20da0de1a6cb331ce8e92c6d8adf 100644 (file)
--- a/selinux.c
+++ b/selinux.c
@@ -146,8 +146,6 @@ relabel_tty(const char *ttyn, security_context_t new_context,
            if (enforcing)
                goto error;
        }
-       freecon(new_tty_con);
-       new_tty_con = NULL;
     }
 
     *tty_context = tty_con;