rfb/detect: fix rfb_parse_sec_result return type

The data parsed is a u32, but returned as DetectUintData<u8>, then
later free'd as a DetectUintData<u32>.
pull/14801/head
Jason Ish 5 months ago committed by Victor Julien
parent 8b2a7ac47c
commit b9e0f9cc8b

@ -123,7 +123,7 @@ unsafe extern "C" fn rfb_sec_type_free(_de: *mut DetectEngineCtx, ctx: *mut c_vo
unsafe extern "C" fn rfb_parse_sec_result(
ustr: *const std::os::raw::c_char,
) -> *mut DetectUintData<u8> {
) -> *mut DetectUintData<u32> {
let ft_name: &CStr = CStr::from_ptr(ustr); //unsafe
if let Ok(s) = ft_name.to_str() {
if let Some(ctx) = detect_parse_uint_enum::<u32, RFBSecurityResultStatus>(s) {

Loading…
Cancel
Save