Skip to contentSkip to conversation

Fix endless loop on unknown netfilter attributes.

PATCH Applied Marcus Sundberg 2 participants 2 messages Aug 8, 2007 – Aug 9, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

src/libnfnetlink.c +1 -0
@@ -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;
Signature · 3 lines
---------------------------------------+--------------------------
  Marcus Sundberg <[email protected]>  | Firewalls with SIP & NAT
 Software Developer, Ingate Systems AB |  http://www.ingate.com/
maintainer Applied
#1 lore raw
Quoted 4 lines · Marcus Sundberg

[LIBNFNETLINK] Fix endless loop on unknown netfilter attributes.

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

Applied. Thanks Marcus.

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