aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2001-04-09 01:33:49 +0800
committerse <se@FreeBSD.org>2001-04-09 01:33:49 +0800
commit828dc5659a535ca16dd7f459ed2d0f02078e38af (patch)
tree694c4da4ab3293df860dc9aaa927d554dcacd9fe /net-mgmt
parent1427f4c9e2ff5d8b3b0ee5b16783e1a6c7eca177 (diff)
downloadfreebsd-ports-gnome-828dc5659a535ca16dd7f459ed2d0f02078e38af.tar.gz
freebsd-ports-gnome-828dc5659a535ca16dd7f459ed2d0f02078e38af.tar.zst
freebsd-ports-gnome-828dc5659a535ca16dd7f459ed2d0f02078e38af.zip
Fix handling of VLAN packets.
Initialize a few variables to 0.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/argus/files/patch-ab16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mgmt/argus/files/patch-ab b/net-mgmt/argus/files/patch-ab
new file mode 100644
index 000000000000..58befc429804
--- /dev/null
+++ b/net-mgmt/argus/files/patch-ab
@@ -0,0 +1,16 @@
+--- server/ArgusModeler.c~ Fri Mar 9 16:47:00 2001
++++ server/ArgusModeler.c Fri Apr 6 17:08:28 2001
+@@ -694,5 +694,5 @@
+ if ((vlan = (struct ArgusVlanStruct *) ArgusCalloc (1, sizeof(struct ArgusVlanStruct))) != NULL) {
+ vlan->type = ARGUS_VLAN_DSR;
+- vlan->length = sizeof(vlan);
++ vlan->length = sizeof(*vlan);
+ flowstr->VlanDSRBuffer = vlan;
+ }
+@@ -1510,4 +1510,6 @@
+ #endif
+
++ bzero ((char *)ArgusThisFlow, sizeof(*ArgusThisFlow));
++ ArgusThisHash = 0;
+ ArgusThisIpHdr = ip;
+