Skip to content

Commit

Permalink
http2: rename event variant to match rule
Browse files Browse the repository at this point in the history
Rename InvalidHTTP1Settings to InvalidHttp1Settings so it gets the
expected name transformation of "invalid_http1_settings".

Ticket: #7361
  • Loading branch information
jasonish committed Nov 1, 2024
1 parent 57ab100 commit c2d3bac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rust/src/http2/detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/http2/http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub enum HTTP2Event {
ExtraHeaderData,
LongFrameData,
StreamIdReuse,
InvalidHTTP1Settings,
InvalidHttp1Settings,
FailedDecompression,
InvalidRange,
HeaderIntegerOverflow,
Expand Down

0 comments on commit c2d3bac

Please sign in to comment.