From 87d1e9d1950b3fa4544c93056ada9fef00e1b7c3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Aug 2008 16:46:52 +0000 Subject: [PATCH] After freeing dbprinc, reset it to null git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20619 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/kdb_log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.26.2