2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +00:00

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