]> git.pld-linux.org Git - packages/ulogd.git/blob - ulogd-BASE.patch
- new from https://bugzilla.redhat.com/show_bug.cgi?id=247345
[packages/ulogd.git] / ulogd-BASE.patch
1 --- extensions/ulogd_BASE.c-save        2007-08-06 11:23:53.000000000 +0200
2 +++ extensions/ulogd_BASE.c     2007-08-06 11:28:47.000000000 +0200
3 @@ -63,7 +63,7 @@ static ulog_iret_t *_interp_raw(ulog_int
4  {
5         unsigned char *p;
6         int i;
7 -       char *buf, *oldbuf = NULL;
8 +       char *buf = NULL;
9         ulog_iret_t *ret = ip->result;
10  
11         if (pkt->mac_len) {
12 @@ -75,9 +75,8 @@ static ulog_iret_t *_interp_raw(ulog_int
13                 *buf = '\0';
14  
15                 p = pkt->mac;
16 -               oldbuf = buf;
17                 for (i = 0; i < pkt->mac_len; i++, p++)
18 -                       sprintf(buf, "%s%02x%c", oldbuf, *p, i==pkt->mac_len-1 ? ' ':':');
19 +                       sprintf(buf + (i*3), "%02x%c", *p, i==pkt->mac_len-1 ? ' ':':');
20                 ret[0].value.ptr = buf;
21                 ret[0].flags |= ULOGD_RETF_VALID;
22         }
23
This page took 0.078813 seconds and 3 git commands to generate.