From 047232df37d67cc4c3945e3880b06926f1fd6f14 Mon Sep 17 00:00:00 2001 From: Justin Azoff Date: Fri, 1 Sep 2023 13:23:45 -0400 Subject: [PATCH] Fix check for emailed notices This bug was introduced in 9d0bd96 --- scripts/policy/frameworks/notice/extend-email/hostnames.zeek | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/policy/frameworks/notice/extend-email/hostnames.zeek b/scripts/policy/frameworks/notice/extend-email/hostnames.zeek index f27477cb2d..cc66798ef0 100644 --- a/scripts/policy/frameworks/notice/extend-email/hostnames.zeek +++ b/scripts/policy/frameworks/notice/extend-email/hostnames.zeek @@ -20,7 +20,7 @@ hook notice(n: Notice::Info) &priority=-1 return; # This should only be done for notices that are being sent to email. - if ( ! n?$email_dest ) + if ( |n$email_dest| == 0 ) return; # I'm not recovering gracefully from the when statements because I want