From 8d6699e7e286ab7d64c896384ccdd77d55130cb5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 11 Jul 2010 14:51:31 +0200 Subject: nflog: fix HW address output in nfq_snprintf_xml() This patch fixes the output of the HW address in XML files: 800:800:800:800:800: now it looks fine: 0019a917a400 Signed-off-by: Pablo Neira Ayuso --- src/libnetfilter_log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c index 7ace0d6..0e49e62 100644 --- a/src/libnetfilter_log.c +++ b/src/libnetfilter_log.c @@ -569,9 +569,9 @@ int nflog_snprintf_xml(char *buf, size_t rem, struct nflog_data *tb, int flags) size = snprintf(buf + offset, rem, ""); SNPRINTF_FAILURE(size, rem, offset, len); - for (i=0; ihw_protocol)); + for (i=0; ihw_addr[i]); SNPRINTF_FAILURE(size, rem, offset, len); } -- cgit v1.2.3