From 64bec11f735669ee6b83cf3e7fb388ac1fe99e76 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Mon, 18 Sep 1995 15:17:40 +0000 Subject: [PATCH] * main.c (init_realm): strdup KRB5_KDB_M_NAME if we use it, to avoid free'ing a constant later. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6810 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 5 +++++ src/kdc/main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index f8d32bfee..968870413 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 18 11:16:30 1995 Mark Eichin + + * main.c (init_realm): strdup KRB5_KDB_M_NAME if we use it, to + avoid free'ing a constant later. + Fri Sep 15 01:33:40 1995 Theodore Y. Ts'o * main.c (init_realm): Stop after finding the first TGS key which diff --git a/src/kdc/main.c b/src/kdc/main.c index c31632cbf..4d689a5bc 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -392,7 +392,7 @@ init_realm(progname, rdp, realm, def_dbname, def_mpname, rdp->realm_mpname = strdup(rparams->realm_mkey_name); else rdp->realm_mpname = (def_mpname) ? strdup(def_mpname) : - KRB5_KDB_M_NAME; + strdup(KRB5_KDB_M_NAME); /* Handle master key type */ if (rparams && rparams->realm_enctype_valid) -- 2.26.2