/[smeserver]/rpms/ulogd/sme9/ulogd-1.24-fortify-source.patch
ViewVC logotype

Annotation of /rpms/ulogd/sme9/ulogd-1.24-fortify-source.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Feb 7 22:06:28 2013 UTC (11 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: ulogd-1_24-13_fc12, ulogd-1_24-13_el6_sme, HEAD
Initial import

1 slords 1.1 --- extensions/ulogd_BASE.c.fortify-source 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     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed