From: Ken Raeburn Date: Mon, 7 Feb 2000 11:21:26 +0000 (+0000) Subject: * kinit.c (try_convert524): Avoid duplicate free calls X-Git-Tag: krb5-1.2-beta1~106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c22d0d4dca5fbb55adf7a3f2c15ee8dcdebb3716;p=krb5.git * kinit.c (try_convert524): Avoid duplicate free calls git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12014 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index b3f0ab0c3..9f984af84 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,7 @@ +2000-02-07 Ken Raeburn + + * kinit.c (try_convert524): Avoid duplicate free calls. + 2000-02-04 Danilo Almeida * kinit.c: Only free stuff if it's not NULL. diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 509d30d02..6eb39515a 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -849,6 +849,9 @@ int try_convert524(k5) increds.client = k5->me; increds.server = kpcserver; + /* Prevent duplicate free calls. */ + kpcserver = 0; + increds.times.endtime = 0; increds.keyblock.enctype = ENCTYPE_DES_CBC_CRC; if ((code = krb5_get_credentials(k5->ctx, 0,