diff --git a/rust/src/http2/detect.rs b/rust/src/http2/detect.rs index ce1212905866..5e752ae4bb03 100644 --- a/rust/src/http2/detect.rs +++ b/rust/src/http2/detect.rs @@ -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); } } } diff --git a/rust/src/http2/http2.rs b/rust/src/http2/http2.rs index 23aaf261ff76..d679c99e3e82 100644 --- a/rust/src/http2/http2.rs +++ b/rust/src/http2/http2.rs @@ -401,7 +401,7 @@ pub enum HTTP2Event { ExtraHeaderData, LongFrameData, StreamIdReuse, - InvalidHTTP1Settings, + InvalidHttp1Settings, FailedDecompression, InvalidRange, HeaderIntegerOverflow,