From 318961c76bf2d7c5ab715d8fee4aa005bdcde5e0 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Thu, 9 Aug 2007 18:08:33 +0000 Subject: Marcus Sundberg Fix endless loop on unknown netfilter attributes. This prevents an endless loop when nfnl_check_attributes() sees an unknown attribute. --- src/libnfnetlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libnfnetlink.c b/src/libnfnetlink.c index e2d8c74..4b2a3b3 100644 --- a/src/libnfnetlink.c +++ b/src/libnfnetlink.c @@ -1129,6 +1129,7 @@ int nfnl_check_attributes(const struct nfnl_handle *h, * 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; -- cgit v1.2.3