From a65ca95d4d27c31a3610da237618f30dc7567922 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 10 Oct 2024 15:08:01 +0200 Subject: [PATCH] s4:torture/rpc: check that DOWNGRADE_DETECTED has no bits negotiated BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit 36310650ee7a64603128139f512d3a4e039f8822) --- source4/torture/rpc/netlogon_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/torture/rpc/netlogon_crypto.c b/source4/torture/rpc/netlogon_crypto.c index 85844604ee2..8defd439a88 100644 --- a/source4/torture/rpc/netlogon_crypto.c +++ b/source4/torture/rpc/netlogon_crypto.c @@ -152,6 +152,8 @@ static bool test_ServerAuth3Crypto(struct dcerpc_pipe *p, a.out.result, NT_STATUS_DOWNGRADE_DETECTED, "Unexpected status code"); + torture_assert_int_equal(tctx, negotiate_flags, 0, + "NT_STATUS_DOWNGRADE_DETECTED..."); return false; } torture_assert_ntstatus_ok(tctx,