From: Theodore Tso Date: Wed, 27 Sep 1995 00:18:30 +0000 (+0000) Subject: alt_prof.c (krb5_read_realm_params): On an error, initialize the X-Git-Tag: krb5-1.0-beta6~998 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96a44143c1a35154c0de79d4aec5cbfbab769920;p=krb5.git alt_prof.c (krb5_read_realm_params): On an error, initialize the returned rparams pointer to NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6867 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm/ChangeLog b/src/lib/kadm/ChangeLog index d4395dd57..ab1e6780c 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 26 16:24:00 1995 + + * 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 * Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the diff --git a/src/lib/kadm/alt_prof.c b/src/lib/kadm/alt_prof.c index 93d6ab182..2460f176e 100644 --- a/src/lib/kadm/alt_prof.c +++ b/src/lib/kadm/alt_prof.c @@ -432,8 +432,9 @@ cleanup: if (kret) { if (rparams) krb5_free_realm_params(kcontext, rparams); - } else - *rparamp = rparams; + rparams = 0; + } + *rparamp = rparams; return(kret); }