From: John Kohl Date: Fri, 9 Feb 1990 16:23:50 +0000 (+0000) Subject: modify realm_of_tgt to use krb5_princ_realm() X-Git-Tag: krb5-1.0-alpha2~1051 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06e3a9520eb433b7a2b4343217549df01ce16699;p=krb5.git modify realm_of_tgt to use krb5_princ_realm() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@333 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index 267922ae4..ecda3cb13 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -56,7 +56,7 @@ void closedown_network PROTOTYPE((void)); #define setflag(flagfield, flag) (flagfield |= (flag)) #define clear(flagfield, flag) (flagfield &= ~(flag)) -#define realm_of_tgt(ticket) ((ticket)->server[0]) +#define realm_of_tgt(ticket) krb5_princ_realm(ticket->server) #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b))