Fix seg faulting trace log message for use of fallback realm
authorGreg Hudson <ghudson@mit.edu>
Tue, 8 Feb 2011 22:31:10 +0000 (22:31 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 8 Feb 2011 22:31:10 +0000 (22:31 +0000)
The call to TRACE_TKT_CREDS_FALLBACK in get_creds.c was supplying the
wrong argument, causing a crash.

ticket: 6856
target_version: 1.9.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24618 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/get_creds.c

index 8fb22c6ed188e57b660ea59cade6bf841c864135..cf216b707c376acce6184f28c1c9186ae433594a 100644 (file)
@@ -510,7 +510,7 @@ try_fallback_realm(krb5_context context, krb5_tkt_creds_context ctx)
     krb5_free_data_contents(context, &ctx->server->realm);
     ctx->server->realm = string2data(hrealms[0]);
     free(hrealms);
-    TRACE_TKT_CREDS_FALLBACK(context, ctx->server->realm);
+    TRACE_TKT_CREDS_FALLBACK(context, &ctx->server->realm);
 
     /* Obtain a TGT for the new service realm. */
     ctx->getting_tgt_for = STATE_NON_REFERRAL;