aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorben <ben@FreeBSD.org>2001-01-06 06:38:09 +0800
committerben <ben@FreeBSD.org>2001-01-06 06:38:09 +0800
commit754e9a0dddc4971304036ad02594f5e2b764889c (patch)
tree68f3db350f093554874b5290c12a289983313acb /net-mgmt
parent7fe1b98749a531939ad9e3bfdc8d3051559cb15c (diff)
downloadfreebsd-ports-gnome-754e9a0dddc4971304036ad02594f5e2b764889c.tar.gz
freebsd-ports-gnome-754e9a0dddc4971304036ad02594f5e2b764889c.tar.zst
freebsd-ports-gnome-754e9a0dddc4971304036ad02594f5e2b764889c.zip
Add a patch to fix a couple of memory handling problems which show up with
MALLOC_OPTIONS=AJ.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nstreams/files/patch-aa26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-mgmt/nstreams/files/patch-aa b/net-mgmt/nstreams/files/patch-aa
new file mode 100644
index 000000000000..1180995d5d34
--- /dev/null
+++ b/net-mgmt/nstreams/files/patch-aa
@@ -0,0 +1,26 @@
+--- src/nstreams.c Thu Nov 11 22:13:14 1999
++++ src/nstreams.c Fri Dec 29 07:04:41 2000
+@@ -179,6 +179,7 @@
+ char * output_name = NULL;
+
+
++ bzero(cache, sizeof(struct cache));
+
+
+ parser = parse_tcpdump_line;
+--- src/output.c Thu Nov 11 22:13:15 1999
++++ src/output.c Fri Dec 29 07:20:51 2000
+@@ -122,11 +122,11 @@
+ else {
+ ret->sports = malloc(10);
+ sprintf(ret->sports, "%d", ret->sport);
+- realloc(ret->sports, strlen(ret->sports)+1);
++ ret->sports = realloc(ret->sports, strlen(ret->sports)+1);
+
+ ret->dports = malloc(10);
+ sprintf(ret->dports, "%d", ret->dport);
+- realloc(ret->dports, strlen(ret->dports)+1);
++ ret->dports = realloc(ret->dports, strlen(ret->dports)+1);
+ }
+
+ ret->show_net = shownet;