Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: iptables: Devel

[PATCH] [LIBNFNETLINK] Fix endless loop on unknown netfilter attributes.

 

 

iptables devel RSS feed   Index | Next | Previous | View Threaded


marcus at ingate

Aug 8, 2007, 12:59 PM

Post #1 of 2 (722 views)
Permalink
[PATCH] [LIBNFNETLINK] Fix endless loop on unknown netfilter attributes.

Hi!

[LIBNFNETLINK] Fix endless loop on unknown netfilter attributes.

This prevents an endless loop when nfnl_check_attributes() sees
an unknown attribute.

Signed-off-by: Marcus Sundberg <marcus [at] ingate>


--- libnfnetlink-0.0.30/src/libnfnetlink.c 2007/08/08 11:32:07
+++ libnfnetlink-0.0.30/src/libnfnetlink.c 2007/08/08 11:32:17
@@ -1129,6 +1129,7 @@ int nfnl_check_attributes(const struct n
* the kernel which we don't understand
* yet. We have to silently ignore this
* for the sake of future compatibility */
+ attr = NFA_NEXT(attr, attrlen);
continue;
}
nfa[flavor - 1] = attr;

--
---------------------------------------+--------------------------
Marcus Sundberg <marcus [at] ingate> | Firewalls with SIP & NAT
Software Developer, Ingate Systems AB | http://www.ingate.com/


pablo at netfilter

Aug 9, 2007, 9:58 AM

Post #2 of 2 (678 views)
Permalink
Re: [PATCH] [LIBNFNETLINK] Fix endless loop on unknown netfilter attributes. [In reply to]

Marcus Sundberg wrote:
> [LIBNFNETLINK] Fix endless loop on unknown netfilter attributes.
>
> This prevents an endless loop when nfnl_check_attributes() sees
> an unknown attribute.

Applied. Thanks Marcus.

--
"Será preciso viajar a través de los ojos de los idiotas" -- Poeta en
Nueva York -- Federico García Lorca.

iptables devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.