negate filter predicate

This commit is contained in:
auronandace
2026-03-13 08:41:41 +00:00
parent 29d0cc67ee
commit 0a5f8429a3
+1 -1
View File
@@ -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;