summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/kdc/krb5tgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/kdc/krb5tgs.c b/source4/heimdal/kdc/krb5tgs.c
index 3560a0df66..06a535d4d4 100644
--- a/source4/heimdal/kdc/krb5tgs.c
+++ b/source4/heimdal/kdc/krb5tgs.c
@@ -1689,7 +1689,7 @@ server_lookup:
* backward.
*/
- if (strcmp(krb5_principal_get_realm(context, sp),
+ if (strcmp(krb5_principal_get_realm(context, server->entry.principal),
krb5_principal_get_comp_string(context,
krbtgt->entry.principal,
1)) != 0) {