Clearing credentials question

Greg Hudson ghudson at MIT.EDU
Thu Jan 6 22:16:46 EST 2011


On Thu, 2011-01-06 at 21:35 -0500, Markus Moeller wrote:
> I get the same error if I set
> 
> creds.keyblock.contents = NULL;
> 
> before cleaning the content.

There are a lot of other fields in the creds structure, and they're also
all full of stack garbage if you don't initialize them.  Try

memset(&creds, 0, sizeof(creds));

near the beginning of main() and see if you still get a memory fault (I
don't).





More information about the Kerberos mailing list