Fix policy/protocols/conn/failed-service-logging.zeek

In GH-4422 it was pointed out that the protocols/conn/failed-service-logging.zeek
policy script only works when
`DPD::track_removed_services_in_connection=T` is set.

This was caused by a logic error in the script. This commit fixes this
logic error and introduces an additional test that checks that
failed-service-logging works even when the option is not set to true.
This commit is contained in:
Johanna Amann 2025-05-06 13:37:12 +01:00
parent e986caddf0
commit f293d5a852
3 changed files with 16 additions and 1 deletions

View file

@ -5,3 +5,7 @@
@load policy/protocols/conn/failed-service-logging
redef DPD::track_removed_services_in_connection = T;
# @TEST-START-NEXT
@load policy/protocols/conn/failed-service-logging