]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http2: rename event variant to match rule
authorJason Ish <jason.ish@oisf.net>
Fri, 1 Nov 2024 15:58:33 +0000 (09:58 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Nov 2024 10:40:00 +0000 (11:40 +0100)
Rename InvalidHTTP1Settings to InvalidHttp1Settings so it gets the
expected name transformation of "invalid_http1_settings".

Ticket: #7361

rust/src/http2/detect.rs
rust/src/http2/http2.rs

index 74bb59223d1564c4bff7fd6fa2072ee71c5bd507..cc013881cae27c4ccbbe3992a03b369d0bf76196 100644 (file)
@@ -961,7 +961,7 @@ fn http2_tx_set_settings(state: &mut HTTP2State, input: &[u8]) {
     match STANDARD.decode(input) {
         Ok(dec) => {
             if dec.len() % 6 != 0 {
-                state.set_event(HTTP2Event::InvalidHTTP1Settings);
+                state.set_event(HTTP2Event::InvalidHttp1Settings);
             }
 
             let head = parser::HTTP2FrameHeader {
@@ -982,12 +982,12 @@ fn http2_tx_set_settings(state: &mut HTTP2State, input: &[u8]) {
                     });
                 }
                 Err(_) => {
-                    state.set_event(HTTP2Event::InvalidHTTP1Settings);
+                    state.set_event(HTTP2Event::InvalidHttp1Settings);
                 }
             }
         }
         Err(_) => {
-            state.set_event(HTTP2Event::InvalidHTTP1Settings);
+            state.set_event(HTTP2Event::InvalidHttp1Settings);
         }
     }
 }
index 9281c011ff29f2c948bf3562b5da28a551f0c6f3..89b599a9f8efa5dda6a1f934fda02be29c48e0ea 100644 (file)
@@ -498,7 +498,7 @@ pub enum HTTP2Event {
     ExtraHeaderData,
     LongFrameData,
     StreamIdReuse,
-    InvalidHTTP1Settings,
+    InvalidHttp1Settings,
     FailedDecompression,
     InvalidRange,
     HeaderIntegerOverflow,