From 06e3a9520eb433b7a2b4343217549df01ce16699 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 9 Feb 1990 16:23:50 +0000 Subject: [PATCH] modify realm_of_tgt to use krb5_princ_realm() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@333 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.26.2