From c7cd3b17c35ce3cfbb5d767e94f48301f226f5db Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 15 Apr 2026 19:46:28 +0200 Subject: [PATCH] snmp: minor snmp.pdu_type type cleanup --- rust/src/snmp/detect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/snmp/detect.rs b/rust/src/snmp/detect.rs index 47e8ebdc5e..4d9b91cc99 100644 --- a/rust/src/snmp/detect.rs +++ b/rust/src/snmp/detect.rs @@ -161,7 +161,7 @@ unsafe extern "C" fn snmp_detect_pdutype_parse( if let Ok(s) = ft_name.to_str() { if let Some(ctx) = detect_parse_uint_enum::(s) { let boxed = Box::new(ctx); - return Box::into_raw(boxed) as *mut _; + return Box::into_raw(boxed); } } return std::ptr::null_mut();