* serialize.c (krb5_register_serializer): Do not free a NULL pointer
authorEzra Peisach <epeisach@mit.edu>
Tue, 5 Nov 1996 13:10:32 +0000 (13:10 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 5 Nov 1996 13:10:32 +0000 (13:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9296 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/serialize.c

index 27326db516a8e7889451a3f0ef44e9d95c11896c..4d871640ce290b192b723cc4115949d2c979d33b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Nov  5 08:09:23 1996  Ezra Peisach  <epeisach@mit.edu>
+
+       * serialize.c (krb5_register_serializer): Do not free a NULL pointer. 
+
 Thu Oct 31 13:48:14 1996  Theodore Y. Ts'o  <tytso@mit.edu>
 
        * init_ctx.c (krb5_init_context): Make it more obvious that
index 20107c45789e2185c76abfd39968bf82730cf4d9..392caf4da03c7858c8c4148cb5db0e62aeaac826 100644 (file)
@@ -75,7 +75,7 @@ krb5_register_serializer(kcontext, entry)
            /* Copy in new entry */
            memcpy(&stable[kcontext->ser_ctx_count], entry,
                   sizeof(krb5_ser_entry));
-           krb5_xfree(kcontext->ser_ctx);
+           if (kcontext->ser_ctx) krb5_xfree(kcontext->ser_ctx);
            kcontext->ser_ctx = (void *) stable;
            kcontext->ser_ctx_count++;
        }