From 42efa60c367aac195f886d086ff86d3c5478ea58 Mon Sep 17 00:00:00 2001 From: dzeus Date: Fri, 25 Feb 2011 08:17:27 +0000 Subject: [PATCH] - new from https://bugzilla.redhat.com/show_bug.cgi?id=247345 Changed files: ulogd-BASE.patch -> 1.1 --- ulogd-BASE.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ulogd-BASE.patch diff --git a/ulogd-BASE.patch b/ulogd-BASE.patch new file mode 100644 index 0000000..30dd1e0 --- /dev/null +++ b/ulogd-BASE.patch @@ -0,0 +1,23 @@ +--- extensions/ulogd_BASE.c-save 2007-08-06 11:23:53.000000000 +0200 ++++ extensions/ulogd_BASE.c 2007-08-06 11:28:47.000000000 +0200 +@@ -63,7 +63,7 @@ static ulog_iret_t *_interp_raw(ulog_int + { + unsigned char *p; + int i; +- char *buf, *oldbuf = NULL; ++ char *buf = NULL; + ulog_iret_t *ret = ip->result; + + if (pkt->mac_len) { +@@ -75,9 +75,8 @@ static ulog_iret_t *_interp_raw(ulog_int + *buf = '\0'; + + p = pkt->mac; +- oldbuf = buf; + for (i = 0; i < pkt->mac_len; i++, p++) +- sprintf(buf, "%s%02x%c", oldbuf, *p, i==pkt->mac_len-1 ? ' ':':'); ++ sprintf(buf + (i*3), "%02x%c", *p, i==pkt->mac_len-1 ? ' ':':'); + ret[0].value.ptr = buf; + ret[0].flags |= ULOGD_RETF_VALID; + } + -- 2.44.0