summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch')
-rw-r--r--net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch b/net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch
deleted file mode 100644
index 0987505..0000000
--- a/net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-=== modified file 'src/common/cidr.c'
---- src/common/cidr.c 2010-10-29 13:00:54 +0000
-+++ src/common/cidr.c 2010-10-29 13:09:01 +0000
-@@ -85,11 +85,12 @@
- destroy_cidr(tcpr_cidr_t * cidr)
- {
-
-- if (cidr != NULL)
-+ if (cidr != NULL) {
- if (cidr->next != NULL)
- destroy_cidr(cidr->next);
-
-- safe_free(cidr);
-+ safe_free(cidr);
-+ }
- return;
-
- }
-@@ -667,7 +668,7 @@
- cidr2iplist(tcpr_cidr_t * cidr, char delim)
- {
- char *list = NULL;
-- char ipaddr[16];
-+ char ipaddr[16], tempbuff[20];
- u_int32_t size, addr, first, last, numips;
- struct in_addr in;
-
-@@ -694,7 +695,8 @@
- /* loop through all but the last one */
- for (addr = first; addr < last; addr++) {
- in.s_addr = htonl(addr);
-- snprintf(ipaddr, 17, "%s%c", inet_ntoa(in), delim);
-+ snprintf(tempbuff, 17, "%s%c", inet_ntoa(in), delim);
-+ memcpy(ipaddr, tempbuff, 16);
- dbgx(2, "%s", ipaddr);
- strlcat(list, ipaddr, size);
- }
-