From: Ken Raeburn Date: Wed, 6 Aug 2008 16:46:52 +0000 (+0000) Subject: After freeing dbprinc, reset it to null X-Git-Tag: krb5-1.7-alpha1~525 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87d1e9d1950b3fa4544c93056ada9fef00e1b7c3;p=krb5.git After freeing dbprinc, reset it to null git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20619 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/kdb_log.c b/src/lib/kdb/kdb_log.c index c4efc41e0..be5853ccc 100644 --- a/src/lib/kdb/kdb_log.c +++ b/src/lib/kdb/kdb_log.c @@ -381,8 +381,10 @@ ulog_replay(krb5_context context, kdb_incr_result_t *incr_ret, char **db_args) dbprinc, &nentry); - if (dbprinc) + if (dbprinc) { krb5_free_principal(context, dbprinc); + dbprinc = NULL; + } if (retval) goto cleanup;