From 10c4b6e3daf791ab76cd85899a8f5b933b9a10cf Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 30 Nov 2009 14:14:47 +0000 Subject: [PATCH] Fix memory leak ticket: 6585 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23384 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/fast_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kdc/fast_util.c b/src/kdc/fast_util.c index 310faf09a..a47c512d4 100644 --- a/src/kdc/fast_util.c +++ b/src/kdc/fast_util.c @@ -151,7 +151,8 @@ kdc_find_fast(krb5_kdc_req **requestptr, if (tgs_subkey) { krb5_set_error_message( kdc_context, KRB5KDC_ERR_PREAUTH_FAILED, "Ap-request armor not permitted with TGS"); - return KRB5KDC_ERR_PREAUTH_FAILED; + retval = KRB5KDC_ERR_PREAUTH_FAILED; + break; } retval = armor_ap_request(state, fast_armored_req->armor); break; -- 2.26.2