From 3e61bd06b1ebe6649e90c658d7cc71912d342680 Mon Sep 17 00:00:00 2001 From: Zhanna Tsitkov Date: Mon, 23 Feb 2009 18:47:28 +0000 Subject: [PATCH] Correct the return code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22046 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/do_tgs_req.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index e363782ec..a0ddf8134 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -1125,11 +1125,13 @@ prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ) } if (realms == 0) { printf(" (null)\n"); + retval = KRB5KRB_AP_ERR_BADMATCH; goto cleanup; } if (realms[0] == 0) { printf(" (none)\n"); free(realms); + retval = KRB5KRB_AP_ERR_BADMATCH; goto cleanup; } /* Modify request. @@ -1140,7 +1142,6 @@ prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ) (*request->server).realm.length, (*request->server).realm.data, "krbtgt", realms[0], (char *)0); - for (cpp = realms; *cpp; cpp++) free(*cpp); } -- 2.26.2