[1034] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

tempkey should be init to 0

daemon@ATHENA.MIT.EDU (Jim Miller)
Wed Jan 4 17:01:57 1995

From: jim@bilbo.suite.com (Jim Miller)
Date: Wed, 4 Jan 95 15:59:49 -0600
To: krb5-bugs@MIT.EDU
Reply-To: Jim_Miller@suite.com


This bug report is for KRB5, beta 4, patchlevel 3.

In the function "adm_enter_rnd_pwd_key" (kadmin/server/adm_funcs.c)...

Just before exiting this function the code tests "tempkey->contents".   
However, depending on how you got to "finish:" tempkey could be NULL or  
full of stack garbage.

Solution:

Add the following line at the begining of the function:

    tempkey = 0;

Also, modify the test at the bottom to be:

    if (tempkey && tempkey->contents) {


Jim_Miller@suite.com


home help back first fref pref prev next nref lref last post