From: Tom Yu Date: Wed, 5 Feb 2003 04:57:46 +0000 (+0000) Subject: comment X-Git-Tag: krb5-1.3-alpha1~124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ed9da1092fa6fd1f503860d4b4f81f051a0a259;p=krb5.git 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 --- 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