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

Ticket: #7361
(cherry picked from commit b1c26dccf3d361109ddf5b163a8a4268423f0a9c)

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

index ce12129058666cd19fd28853c82d5c67d9d9c616..5e752ae4bb03efbfbf7994e178fe03599eccb015 100644 (file)
@@ -962,7 +962,7 @@ fn http2_tx_set_settings(state: &mut HTTP2State, input: &[u8]) {
     match base64::decode(input) {
         Ok(dec) => {
             if dec.len() % 6 != 0 {
-                state.set_event(HTTP2Event::InvalidHTTP1Settings);
+                state.set_event(HTTP2Event::InvalidHttp1Settings);
             }
 
             let head = parser::HTTP2FrameHeader {
@@ -983,12 +983,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 23aaf261ff76f5b6763a1f56af7b24564773fb7d..d679c99e3e828b2e133ec11d7dbe84844ea0a287 100644 (file)
@@ -401,7 +401,7 @@ pub enum HTTP2Event {
     ExtraHeaderData,
     LongFrameData,
     StreamIdReuse,
-    InvalidHTTP1Settings,
+    InvalidHttp1Settings,
     FailedDecompression,
     InvalidRange,
     HeaderIntegerOverflow,