[33059] in Kerberos

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

Re: Clearing credentials question

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Jan 6 22:16:52 2011

From: Greg Hudson <ghudson@mit.edu>
To: Markus Moeller <huaraz@moeller.plus.com>
In-Reply-To: <ig5u6h$r1l$1@dough.gmane.org>
Date: Thu, 06 Jan 2011 22:16:46 -0500
Message-ID: <1294370206.2456.341.camel@ray>
Mime-Version: 1.0
Cc: "kerberos@mit.edu" <kerberos@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

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).


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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