* kinit.c (try_convert524): Avoid duplicate free calls
authorKen Raeburn <raeburn@mit.edu>
Mon, 7 Feb 2000 11:21:26 +0000 (11:21 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 7 Feb 2000 11:21:26 +0000 (11:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12014 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kinit/ChangeLog
src/clients/kinit/kinit.c

index b3f0ab0c31299a76c673efe47fda418f36f0b006..9f984af84d80274bf3904246fff7727cf4ecf764 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-07  Ken Raeburn  <raeburn@mit.edu>
+
+       * kinit.c (try_convert524): Avoid duplicate free calls.
+
 2000-02-04  Danilo Almeida  <dalmeida@mit.edu>
 
        * kinit.c: Only free stuff if it's not NULL.
index 509d30d023e745fdc0cb116e3ee24e4a86aaccf5..6eb39515aa279c0f27bb2d602bdff234936d886d 100644 (file)
@@ -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,