]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/applayer: use c_int as return type for get_info_by_id 12059/head 12067/head
authorJason Ish <jason.ish@oisf.net>
Tue, 22 Oct 2024 16:46:13 +0000 (10:46 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 28 Oct 2024 20:52:04 +0000 (14:52 -0600)
commit3000e963d568bfea999efd4148496ff485ffa4ed
tree9ab16843e72fa9dbdb7415a53ed51e09f03e0821
parent10225bdee2f443fd52acb90b15ba93a6a93609b2
rust/applayer: use c_int as return type for get_info_by_id

Rust was using i8 as the return type, while C uses int. As of Rust
1.82, the return value is turned to garbage over the FFI boundary.

Ticket: #7338
(cherry picked from commit 45384ef969d180d962f4b50f19556c5e2c5cfccc)
rust/derive/src/applayerevent.rs
rust/src/applayer.rs
rust/src/smb/smb.rs