summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libnetfilter_log.c6
1 files 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, "<src>");
SNPRINTF_FAILURE(size, rem, offset, len);
- for (i=0; i<hlen-1; i++) {
- size = snprintf(buf + offset, rem, "%02x:",
- ntohs(ph->hw_protocol));
+ for (i=0; i<hlen; i++) {
+ size = snprintf(buf + offset, rem, "%02x",
+ hwph->hw_addr[i]);
SNPRINTF_FAILURE(size, rem, offset, len);
}