]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3286: http_inspect: fix warning
authorTom Peters (thopeter) <thopeter@cisco.com>
Wed, 23 Feb 2022 20:30:05 +0000 (20:30 +0000)
committerTom Peters (thopeter) <thopeter@cisco.com>
Wed, 23 Feb 2022 20:30:05 +0000 (20:30 +0000)
Merge in SNORT/snort3 from ~MDAGON/snort3:fix_issue to master

Squashed commit of the following:

commit 3fd17ac7017b4ac8235e68919c162894e56c6ea7
Author: Maya Dagon <mdagon@cisco.com>
Date:   Tue Feb 22 21:09:36 2022 -0500

    http_inspect: add override to fix warning

src/service_inspectors/http_inspect/ips_http.h

index b9e6d36a3f978d166e125441ebc0958fe6ed555e..50b025d89fc6b9191af1eb7d195d9f00a2136a00 100644 (file)
@@ -43,7 +43,7 @@ public:
         snort::CursorActionType cat_, const snort::Parameter params[])
         : snort::Module(key_, help, params), rule_opt_index(rule_opt_index_),
         key(key_), cat(cat_) {}
-    snort::ProfileStats* get_profile() const = 0;
+    snort::ProfileStats* get_profile() const override = 0;
     static void mod_dtor(snort::Module* m) { delete m; }
     bool begin(const char*, int, snort::SnortConfig*) override;
     bool set(const char*, snort::Value&, snort::SnortConfig*) override;
@@ -87,7 +87,7 @@ public:
         buffer_info(cm->rule_opt_index, cm->sub_id, cm->form),
         cat(cm->cat), inspect_section(cm->inspect_section) {}
     snort::CursorActionType get_cursor_type() const override { return cat; }
-    EvalStatus eval(Cursor&, snort::Packet*) = 0;
+    EvalStatus eval(Cursor&, snort::Packet*) override = 0;
     uint32_t hash() const override;
     bool operator==(const snort::IpsOption& ips) const override;