From: Jason Ish Date: Fri, 1 Nov 2024 15:58:33 +0000 (-0600) Subject: http2: rename event variant to match rule X-Git-Tag: suricata-8.0.0-beta1~736 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1c26dccf3d361109ddf5b163a8a4268423f0a9c;p=thirdparty%2Fsuricata.git http2: rename event variant to match rule Rename InvalidHTTP1Settings to InvalidHttp1Settings so it gets the expected name transformation of "invalid_http1_settings". Ticket: #7361 --- diff --git a/rust/src/http2/detect.rs b/rust/src/http2/detect.rs index 74bb59223d..cc013881ca 100644 --- a/rust/src/http2/detect.rs +++ b/rust/src/http2/detect.rs @@ -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); } } } diff --git a/rust/src/http2/http2.rs b/rust/src/http2/http2.rs index 9281c011ff..89b599a9f8 100644 --- a/rust/src/http2/http2.rs +++ b/rust/src/http2/http2.rs @@ -498,7 +498,7 @@ pub enum HTTP2Event { ExtraHeaderData, LongFrameData, StreamIdReuse, - InvalidHTTP1Settings, + InvalidHttp1Settings, FailedDecompression, InvalidRange, HeaderIntegerOverflow,