From 1.1 branch:
authorKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 21:15:34 +0000 (21:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 21:15:34 +0000 (21:15 +0000)
1999-09-01  Danilo Almeida  <dalmeida@mit.edu>
* klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name
instead of free.

1999-08-26  Danilo Almeida  <dalmeida@mit.edu>
* klist.c (show_credential): Index addresses array with i
in a loop instead of 1.  (Thanks to jaltman@columbia.edu)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11772 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/klist/ChangeLog
src/clients/klist/klist.c

index face70998d329a46fc6a1ad2897b608f73c7d5a6..98cd6e6625fb85bbb397c16ccea6e22e0a80d816 100644 (file)
@@ -1,3 +1,13 @@
+1999-09-01  Danilo Almeida  <dalmeida@mit.edu>
+
+       * klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name
+       instead of free.
+
+1999-08-26  Danilo Almeida  <dalmeida@mit.edu>
+
+       * klist.c (show_credential): Index addresses array with i
+       in a loop instead of 1.  (Thanks to jaltman@columbia.edu)
+
 1999-08-09  Danilo Almeida  <dalmeida@mit.edu>
 
        * Makefile.in: Use standard windows exe link flags.
index 5d79a52e47c231c4703ba97587b62fc0e200666f..891d98013ea2687fb3ab8e8483560a654409fc88 100644 (file)
@@ -248,7 +248,7 @@ void do_keytab(name)
               printf(")");
          }
          printf("\n");
-         free(pname);
+          krb5_free_unparsed_name(kcontext, pname);
      }
      if (code && code != KRB5_KT_END) {
          com_err(progname, code, "while scanning keytab");
@@ -447,7 +447,7 @@ show_credential(progname, kcontext, cred)
     retval = krb5_unparse_name(kcontext, cred->server, &sname);
     if (retval) {
        com_err(progname, retval, "while unparsing server name");
-       free(name);
+        krb5_free_unparsed_name(kcontext, name);
        return;
     }
     if (!cred->times.starttime)
@@ -527,15 +527,15 @@ show_credential(progname, kcontext, cred)
 
            for (i=1; cred->addresses[i]; i++) {
                printf(", ");
-               one_addr(cred->addresses[1]);
+               one_addr(cred->addresses[i]);
            }
 
            printf("\n");
        }
     }
 
-    free(name);
-    free(sname);
+    krb5_free_unparsed_name(kcontext, name);
+    krb5_free_unparsed_name(kcontext, sname);
 }
 
 void one_addr(a)