blob: 1180995d5d343dce879767e1b53de7d2ffeadb63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
|