From 828b8a14821cd45697c1189cfb7e2c9b420c581a Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 14 Apr 2009 18:33:27 +0000 Subject: [PATCH] clean up KDC realm referrals error handling pull up r22046, r22070 from trunk ------------------------------------------------------------------------ r22070 | tsitkova | 2009-03-09 10:23:31 -0400 (Mon, 09 Mar 2009) | 2 lines Changed paths: M /trunk/src/kdc/do_tgs_req.c Removed unneeded printf's ------------------------------------------------------------------------ r22046 | tsitkova | 2009-02-23 13:47:28 -0500 (Mon, 23 Feb 2009) | 2 lines Changed paths: M /trunk/src/kdc/do_tgs_req.c Correct the return code. ------------------------------------------------------------------------ Removed unneeded printf's ticket: 6462 tags: pullup target_version: 1.7 version_fixed: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22211 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/do_tgs_req.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index 42c9b9f54..2891d10ae 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -1128,12 +1128,12 @@ prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ) goto cleanup; } 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. @@ -1144,7 +1144,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