summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/asn.1/kekrp2ekrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/asn.1/kekrp2ekrp.c')
-rw-r--r--src/lib/krb5/asn.1/kekrp2ekrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/asn.1/kekrp2ekrp.c b/src/lib/krb5/asn.1/kekrp2ekrp.c
index edfea3ee3..833313777 100644
--- a/src/lib/krb5/asn.1/kekrp2ekrp.c
+++ b/src/lib/krb5/asn.1/kekrp2ekrp.c
@@ -97,7 +97,7 @@ register int *error;
goto errout;
}
}
- retval->srealm = krb5_data2qbuf(val->server[0]);
+ retval->srealm = krb5_data2qbuf(krb5_princ_realm(val->server));
if (!retval->srealm) {
*error = ENOMEM;
goto errout;