From 0a5f8429a3dd4e74daf45762823cf35cdeaba227 Mon Sep 17 00:00:00 2001 From: auronandace Date: Fri, 13 Mar 2026 08:41:41 +0000 Subject: [PATCH] negate filter predicate --- src/header/arpa_inet/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/arpa_inet/mod.rs b/src/header/arpa_inet/mod.rs index 55d0ae09e5..04f2cc6881 100644 --- a/src/header/arpa_inet/mod.rs +++ b/src/header/arpa_inet/mod.rs @@ -216,7 +216,7 @@ pub unsafe extern "C" fn inet_pton(af: c_int, src: *const c_char, dst: *mut c_vo for i in 0..4 { if let Some(n) = octets .next() - .filter(|x| x.len() > 3) + .filter(|x| !x.len() > 3) .and_then(|x| u8::from_str(x).ok()) { s_addr[i] = n;