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);