summaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-28 03:20:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-28 03:20:34 +0000
commitcd907c3fb2019ae8b387163b708e39c4ffb211fb (patch)
tree8abe5a3666e82aa3b8e9537191f2c60abeeb8644 /lib/libpcap
parent202aeb851a16944b4fa96440f2c223d923643e4a (diff)
clear cur_membag so that pcap can be used more than once
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/gencode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c
index 23fca891fc9..d8005da4893 100644
--- a/lib/libpcap/gencode.c
+++ b/lib/libpcap/gencode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencode.c,v 1.62 2022/05/28 03:20:14 deraadt Exp $ */
+/* $OpenBSD: gencode.c,v 1.63 2022/05/28 03:20:33 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
@@ -213,6 +213,7 @@ freechunks(void)
membag[i].ptrs = NULL;
membag[i].slot = membag[i].total = 0;
}
+ cur_membag = 0;
}
/*