summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-05-17 20:25:19 +1200
committerAndrew Bartlett <abartlet@samba.org>2022-10-05 04:23:32 +0000
commit01b6c87c4faa8c484a4064872cd1cd918fa05da8 (patch)
tree65555def5b7cd0c5850c7cfaf783ee52345426bf /lib/krb5_wrap
parentd2c5a297f25a48c74a9f93beb2a18d50f3352b43 (diff)
downloadsamba-01b6c87c4faa8c484a4064872cd1cd918fa05da8.tar.gz
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 <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/krb5_samba.c2
1 files changed, 1 insertions, 1 deletions
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);