]> granicus.if.org Git - sudo/commitdiff
tkfile was too short and overflowed the kerberos realm
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Dec 1995 22:45:45 +0000 (22:45 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Dec 1995 22:45:45 +0000 (22:45 +0000)
check.c

diff --git a/check.c b/check.c
index 1cfacebccf73b59d1e1886b11063855727af375f..d7c6df15b186d509be51e7b50f5df4390cc90d90 100644 (file)
--- a/check.c
+++ b/check.c
@@ -598,7 +598,7 @@ static int sudo_krb_validate_user(pw_ent, pass)
     char *pass;
 {
     char realm[REALM_SZ];
-    char tkfile[MAX_UID_T_LEN + sizeof(_PATH_SUDO_TIMEDIR)];
+    char tkfile[sizeof(_PATH_SUDO_TIMEDIR) + 4 + MAX_UID_T_LEN];
     int k_errno;
 
     /* Get the local realm */