All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arturo Borrero <arturo.borrero.glez@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: pablo@netfilter.org
Subject: [libnftables PATCH] data_reg: xml: fix using bad temp variable
Date: Thu, 30 May 2013 00:45:06 +0200	[thread overview]
Message-ID: <20130529224506.18081.1971.stgit@nfdev.cica.es> (raw)

This is a bug. It should use 'utmp' instead of 'tmp'.

Signed-off-by: Arturo Borero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/expr/data_reg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c
index cf74888..71b10fe 100644
--- a/src/expr/data_reg.c
+++ b/src/expr/data_reg.c
@@ -204,7 +204,7 @@ static int nft_data_reg_value_xml_parse(union nft_data_reg *reg, char *xml)
 			mxmlDelete(tree);
 			return -1;
 		}
-		reg->val[i] = tmp;
+		reg->val[i] = utmp;
 	}
 
 	reg->len = sizeof(reg->val);


             reply	other threads:[~2013-05-29 22:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 22:45 Arturo Borrero [this message]
2013-06-05  3:05 ` [libnftables PATCH] data_reg: xml: fix using bad temp variable Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130529224506.18081.1971.stgit@nfdev.cica.es \
    --to=arturo.borrero.glez@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.