From f7c409c4c833615abbe0291e700b0a9fad55dd13 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 3 Sep 2018 10:41:10 +1200 Subject: [PATCH] torture krb5.kdc.canon: Correct principal being checked in TEST_AS_REQ_SELF stage We have already checked the client principal. Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- source4/torture/krb5/kdc-canon-heimdal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/krb5/kdc-canon-heimdal.c b/source4/torture/krb5/kdc-canon-heimdal.c index 848d0f8b09c..30eca87cb52 100644 --- a/source4/torture/krb5/kdc-canon-heimdal.c +++ b/source4/torture/krb5/kdc-canon-heimdal.c @@ -2451,7 +2451,7 @@ static bool torture_krb5_as_req_canon(struct torture_context *tctx, const void * krb5_free_unparsed_name(k5_context, got_principal_string); torture_assert(tctx, krb5_principal_compare(k5_context, - my_creds.client, expected_principal), + my_creds.server, expected_principal), assertion_message); krb5_free_principal(k5_context, principal);