alt_prof.c (krb5_read_realm_params): On an error, initialize the
authorTheodore Tso <tytso@mit.edu>
Wed, 27 Sep 1995 00:18:30 +0000 (00:18 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 27 Sep 1995 00:18:30 +0000 (00:18 +0000)
returned rparams pointer to NULL.

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

src/lib/kadm/ChangeLog
src/lib/kadm/alt_prof.c

index d4395dd57dbbd8e45f746740ec7f8e22ffead97f..ab1e6780c1d57dee76afc8d8749ab95637ee340a 100644 (file)
@@ -1,3 +1,8 @@
+Tue Sep 26 16:24:00 1995    <tytso@rsts-11.mit.edu>
+
+       * alt_prof.c (krb5_read_realm_params): On an error, initialize the
+               returned rparams pointer to NULL.
+
 Mon Sep 25 16:54:18 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
index 93d6ab182815ce4b8caff6160fe0a6efeeab158e..2460f176e1f7c0ebb7696d82e9491078d4dfa2ff 100644 (file)
@@ -432,8 +432,9 @@ cleanup:
     if (kret) {
        if (rparams)
            krb5_free_realm_params(kcontext, rparams);
-    } else
-       *rparamp = rparams;
+       rparams = 0;
+    }
+    *rparamp = rparams;
     return(kret);
 }