tkfile was too short and overflowed the kerberos realm

This commit is contained in:
Todd C. Miller
1995-12-15 22:45:45 +00:00
parent 206899d1dd
commit e8b95038f5

View File

@@ -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 */