]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2866 in SNORT/snort3 from ~BRASTULT/snort3:base64_relative to...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 29 Apr 2021 18:00:22 +0000 (18:00 +0000)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 29 Apr 2021 18:00:22 +0000 (18:00 +0000)
Squashed commit of the following:

commit e485d60864b6a756b84d548a619445377ed1b916
Author: Brandon Stultz <brastult@cisco.com>
Date:   Tue Apr 27 15:55:28 2021 -0400

    ips_options: fix relative base64_decode

src/ips_options/ips_base64.cc

index b73b59ef7f61f09046539c9d4e44d4d203f34a69..7084bd4b5afc15b2fef1201183f1563579dd87fc 100644 (file)
@@ -66,6 +66,9 @@ public:
     uint32_t hash() const override;
     bool operator==(const IpsOption&) const override;
 
+    bool is_relative() override
+    { return config.flags & BASE64DECODE_RELATIVE_FLAG; }
+
     EvalStatus eval(Cursor&, Packet*) override;
 
 private: