* [PATCH] fix handling of netlink packets containing multiple messages
@ 2007-08-08 6:08 Eric Leblond
0 siblings, 0 replies; 2+ messages in thread
From: Eric Leblond @ 2007-08-08 6:08 UTC (permalink / raw)
To: netfilter-devel, pablo; +Cc: gryzor
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've found a bug in libnfnetlink which does not handle correctly
netlink packets made of more than one message.
I attach a trivial patch which fix the issue.
BR,
- --
Eric Leblond <eric@regit.org>
NuFW, Now User Filtering Works : http://www.nufw.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGuV3RnxA7CdMWjzIRAjOmAJ44Usk93bp6hPXP8+4DIg1TEYW+2QCgkWRr
1wrwE/SYwHKPVFfbHFzDFFA=
=t3Sx
-----END PGP SIGNATURE-----
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: libnfnetlink_packet_parsing.diff --]
[-- Type: text/x-patch; name=libnfnetlink_packet_parsing.diff, Size: 278 bytes --]
Index: src/libnfnetlink.c
===================================================================
--- src/libnfnetlink.c (révision 7003)
+++ src/libnfnetlink.c (copie de travail)
@@ -1190,6 +1190,7 @@
return -1;
len -= rlen;
+ buf += rlen;
}
return 0;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix handling of netlink packets containing multiple messages
@ 2007-08-08 11:51 Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2007-08-08 11:51 UTC (permalink / raw)
To: Eric Leblond; +Cc: netfilter-devel, gryzor
Eric Leblond wrote:
> I've found a bug in libnfnetlink which does not handle correctly
> netlink packets made of more than one message.
>
> I attach a trivial patch which fix the issue.
Applied, thanks Eric.
--
"Será preciso viajar a través de los ojos de los idiotas" -- Poeta en
Nueva York -- Federico García Lorca.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-08 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-08 11:51 [PATCH] fix handling of netlink packets containing multiple messages Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2007-08-08 6:08 Eric Leblond
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.