From e7bfafac6c62dea5499662cb9f720eab62a51ff3 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 1 Nov 2010 13:46:56 -0700 Subject: [PATCH] compare the value of the client realm now that it might not be the same pointer fixes the check-delegate test that the new direct hop patch broke --- lib/krb5/get_cred.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/get_cred.c b/lib/krb5/get_cred.c index b5ed95b1f..f2985aa2a 100644 --- a/lib/krb5/get_cred.c +++ b/lib/krb5/get_cred.c @@ -756,7 +756,7 @@ get_cred_kdc_capath_worker(krb5_context context, ret = find_cred(context, ccache, tmp_creds.server, *ret_tgts, &tgts); if(ret == 0){ - if (try_realm != client_realm) + if (strcmp(try_realm, client_realm) != 0) ok_as_delegate = tgts.flags.b.ok_as_delegate; *out_creds = calloc(1, sizeof(**out_creds)); -- 2.11.4.GIT