Fix typo which was causing krb5_encode_test.c to fail due to trying to
authorTheodore Tso <tytso@mit.edu>
Wed, 21 Sep 1994 04:03:06 +0000 (04:03 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 21 Sep 1994 04:03:06 +0000 (04:03 +0000)
free the wrong thing.

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

src/tests/asn.1/ChangeLog [new file with mode: 0644]
src/tests/asn.1/utility.c

diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog
new file mode 100644 (file)
index 0000000..4fb5e11
--- /dev/null
@@ -0,0 +1,6 @@
+Tue Sep 20 23:53:13 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * Fix typo in utility.c --- we should be freeing the pointer to
+       the passed in pointer, not the passed-in pointer itself.
+
+
index a514820bcda46bee958ec3213fc304f77d2c3bb8..17ed2243cf1f22083f191f1bf0b437e4375bcfc0 100644 (file)
@@ -10,7 +10,7 @@ asn1_error_code asn1_krb5_data_unparse(DECLARG(const krb5_data *, code),
      OLDDECLARG(const krb5_data *, code)
      OLDDECLARG(char **, s)
 {
-  if(*s != NULL) free(s);
+  if(*s != NULL) free(*s);
   
   if(code==NULL){
     *s = (char*)calloc(strlen("<NULL>")+1, sizeof(char));