pull up r24618 from trunk
authorTom Yu <tlyu@mit.edu>
Wed, 9 Feb 2011 21:55:36 +0000 (21:55 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Feb 2011 21:55:36 +0000 (21:55 +0000)
 ------------------------------------------------------------------------
 r24618 | ghudson | 2011-02-08 17:31:10 -0500 (Tue, 08 Feb 2011) | 8 lines

 ticket: 6856
 subject: Fix seg faulting trace log message for use of fallback realm
 target_version: 1.9.1
 tags: pullup

 The call to TRACE_TKT_CREDS_FALLBACK in get_creds.c was supplying the
 wrong argument, causing a crash.

ticket: 6856
version_fixed: 1.9.1
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24629 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;