diff --git a/CHANGES b/CHANGES index 33c5a3fb43..b5a52dbbd8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +6.0.0-dev.341 | 2023-04-11 15:16:39 -0700 + + * Stop skipping expiration of empty DNS mappings (Tim Wojtulewicz, Corelight) + 6.0.0-dev.339 | 2023-04-11 15:16:15 -0700 * smtp: Validate mail transaction and disable SMTP analyzer if excessive (Arne Welzel, Corelight) diff --git a/VERSION b/VERSION index e67105c99a..3d8894ab11 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.0-dev.339 +6.0.0-dev.341 diff --git a/src/DNS_Mapping.h b/src/DNS_Mapping.h index 32559701f0..fa761c4e51 100644 --- a/src/DNS_Mapping.h +++ b/src/DNS_Mapping.h @@ -46,13 +46,7 @@ public: bool Failed() const { return failed; } bool Valid() const { return ! failed; } - bool Expired() const - { - if ( ! req_host.empty() && addrs.empty() ) - return false; // nothing to expire - - return util::current_time() > (creation_time + req_ttl); - } + bool Expired() const { return util::current_time() > (creation_time + req_ttl); } void Merge(const DNS_MappingPtr& other);