From 0ed9da1092fa6fd1f503860d4b4f81f051a0a259 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 5 Feb 2003 04:57:46 +0000 Subject: [PATCH] comment * decomp_tkt.c (dcmp_tkt_int): Patch from Booker Bense to use krb_get_lrealm() instead of copying KRB_REALM into prealm. ticket: 710 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15153 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 5 +++++ src/lib/krb4/decomp_tkt.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index 3129e35f1..ada0773b9 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,8 @@ +2003-02-04 Tom Yu + + * decomp_tkt.c (dcmp_tkt_int): Patch from Booker Bense to use + krb_get_lrealm() instead of copying KRB_REALM into prealm. + 2003-01-28 Ken Raeburn * RealmsConfig-glue.c (get_krbhst_default, krb_get_krbhst): diff --git a/src/lib/krb4/decomp_tkt.c b/src/lib/krb4/decomp_tkt.c index 40102440f..7d85991a0 100644 --- a/src/lib/krb4/decomp_tkt.c +++ b/src/lib/krb4/decomp_tkt.c @@ -233,9 +233,13 @@ dcmp_tkt_int(tkt, flags, pname, pinstance, prealm, paddress, session, memcpy(prealm, ptr, (size_t)len); ptr += len; - /* temporary hack until realms are dealt with properly */ + /* + * This hack may be needed for some really krb4 servers, such as + * AFS kaserver (?), that fail to fill in the realm of a ticket + * under some circumstances. + */ if (*prealm == '\0') - strcpy(prealm, KRB_REALM); + krb_get_lrealm(prealm, 1); /* * Ensure there's enough remaining in the ticket to get the -- 2.26.2