From: Zhanna Tsitkov Date: Mon, 23 Feb 2009 18:47:28 +0000 (+0000) Subject: Correct the return code X-Git-Tag: krb5-1.8-alpha1~617 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e61bd06b1ebe6649e90c658d7cc71912d342680;p=krb5.git Correct the return code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22046 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); }