* main.c (init_realm): strdup KRB5_KDB_M_NAME if we use it, to
authorMark Eichin <eichin@mit.edu>
Mon, 18 Sep 1995 15:17:40 +0000 (15:17 +0000)
committerMark Eichin <eichin@mit.edu>
Mon, 18 Sep 1995 15:17:40 +0000 (15:17 +0000)
avoid free'ing a constant later.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6810 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/main.c

index f8d32bfee955a9afd9f480296fa74abf9273dabc..968870413c4f054cc9c778a7fb5b43b960887c3f 100644 (file)
@@ -1,3 +1,8 @@
+Mon Sep 18 11:16:30 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * 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  <tytso@dcl>
 
        * main.c (init_realm): Stop after finding the first TGS key which
index c31632cbf24e77d140c379dd548ed3b78868ae65..4d689a5bca9a4309c5b177d6c6b777e56e4fe0af 100644 (file)
@@ -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)