From: Ezra Peisach Date: Tue, 5 Nov 1996 13:10:32 +0000 (+0000) Subject: * serialize.c (krb5_register_serializer): Do not free a NULL pointer X-Git-Tag: krb5-1.0-freeze1~129 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d482fb6f0178086175723721466ec5262713f4f;p=krb5.git * serialize.c (krb5_register_serializer): Do not free a NULL pointer git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9296 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 27326db51..4d871640c 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 5 08:09:23 1996 Ezra Peisach + + * serialize.c (krb5_register_serializer): Do not free a NULL pointer. + Thu Oct 31 13:48:14 1996 Theodore Y. Ts'o * init_ctx.c (krb5_init_context): Make it more obvious that diff --git a/src/lib/krb5/krb/serialize.c b/src/lib/krb5/krb/serialize.c index 20107c457..392caf4da 100644 --- a/src/lib/krb5/krb/serialize.c +++ b/src/lib/krb5/krb/serialize.c @@ -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++; }