From patchwork Tue May 28 15:06:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 246879 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7444A2C02CD for ; Wed, 29 May 2013 01:06:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934450Ab3E1PGN (ORCPT ); Tue, 28 May 2013 11:06:13 -0400 Received: from smtp3.cica.es ([150.214.5.190]:53526 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934354Ab3E1PGM (ORCPT ); Tue, 28 May 2013 11:06:12 -0400 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 8E2E351ECD5; Tue, 28 May 2013 15:06:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kvtIaN+ZjM27; Tue, 28 May 2013 17:06:10 +0200 (CEST) Received: from nfdev.cica.es (nfdev.cica.es [IPv6:2a00:9ac0:c1ca:31::220]) by smtp.cica.es (Postfix) with ESMTP id 65C4A51ECD4; Tue, 28 May 2013 17:06:10 +0200 (CEST) Subject: [libnftables PATCH] rule: fix table flag not being set at XML parsing To: netfilter-devel@vger.kernel.org From: Arturo Borrero Cc: pablo@netfilter.org Date: Tue, 28 May 2013 17:06:08 +0200 Message-ID: <20130528150608.5236.81847.stgit@nfdev.cica.es> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org This bug was introduced by me at commit: 'src: add support for XML parsing' 51370f0eedb1c8167ab2c340d2a53f0d9f02509c Signed-off-by: Arturo Borrero Gonzalez --- src/rule.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/rule.c b/src/rule.c index 318ae07..4d56d5a 100644 --- a/src/rule.c +++ b/src/rule.c @@ -479,6 +479,7 @@ static int nft_rule_xml_parse(struct nft_rule *r, char *xml) free(r->table); r->table = strdup(mxmlElementGetAttr(tree, "table")); + r->flags |= (1 << NFT_RULE_ATTR_TABLE); /* get and set */ if (mxmlElementGetAttr(tree, "chain") == NULL) {