From 96a44143c1a35154c0de79d4aec5cbfbab769920 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 27 Sep 1995 00:18:30 +0000 Subject: [PATCH] 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 --- src/lib/kadm/ChangeLog | 5 +++++ src/lib/kadm/alt_prof.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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); } -- 2.26.2