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

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

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


Revision 1.2 - (hide annotations) (download)
Thu Mar 4 19:46:46 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Mar 03 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.7-2.sme
- bump version to 2.0.7 [SME: 11248]
- remove init script, let integrator choose between systemd and init.

1 vip-ire 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