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
This commit is contained in:
Love Hornquist Astrand
2010-11-01 13:46:56 -07:00
parent a16f7ea0ab
commit 6184422fef

View File

@@ -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));