From: Andrew Bartlett Date: Sun, 2 Sep 2018 22:41:10 +0000 (+1200) Subject: torture krb5.kdc.canon: Correct principal being checked in TEST_AS_REQ_SELF stage X-Git-Tag: tdb-1.3.17~1769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7c409c4c833615abbe0291e700b0a9fad55dd13;p=thirdparty%2Fsamba.git 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 --- 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);