From: Joseph Sutton Date: Tue, 17 May 2022 08:25:19 +0000 (+1200) Subject: lib:krb5_wrap: Use case-sensitive comparison against 'krbtgt' X-Git-Tag: talloc-2.4.0~762 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b6c87c4faa8c484a4064872cd1cd918fa05da8;p=thirdparty%2Fsamba.git 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 --- 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);