From 01b6c87c4faa8c484a4064872cd1cd918fa05da8 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 17 May 2022 20:25:19 +1200 Subject: [PATCH] lib:krb5_wrap: Use case-sensitive comparison against 'krbtgt' This matches the other comparisons against krbtgt, kadmin, etc., which are all case-sensitive. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- lib/krb5_wrap/krb5_samba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 0e70b696948..ec7c905ab00 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -3370,7 +3370,7 @@ int smb_krb5_principal_is_tgs(krb5_context context, } eq = krb5_princ_size(context, principal) == 2 && - (strequal(p, KRB5_TGS_NAME)); + (strcmp(p, KRB5_TGS_NAME) == 0); talloc_free(p);