From c22d0d4dca5fbb55adf7a3f2c15ee8dcdebb3716 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 7 Feb 2000 11:21:26 +0000 Subject: [PATCH] * kinit.c (try_convert524): Avoid duplicate free calls git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12014 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kinit/ChangeLog | 4 ++++ src/clients/kinit/kinit.c | 3 +++ 2 files changed, 7 insertions(+) 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, -- 2.26.2