STABLE14-tokens-buffer-overflow-20060315

FIXES 28227

avoid a too-short buffer we try to fill with a username. doh.


(cherry picked from commit 5c408ee134b096352d140b1ce6b58edcf6e492d5)
This commit is contained in:
Dave McMurtrie 2006-03-15 18:29:03 +00:00 committed by Derrick Brashear
parent 4e72cd73f3
commit de77645223

View File

@ -54,7 +54,7 @@ main(int argc, char **argv)
time_t current_time; /*Current time of day */
time_t tokenExpireTime; /*When token expires */
char *expireString; /*Char string of expiration time */
char UserName[16]; /*Printable user name */
char UserName[MAXKTCNAMELEN * 2 + 2]; /*Printable user name */
struct ktc_principal serviceName, clientName; /* service name for ticket */
struct ktc_token token; /* the token we're printing */