From 4eeb3e6b99433e0c8f5a42ea35210958650e8f49 Mon Sep 17 00:00:00 2001 From: dongwenze Date: Wed, 19 Apr 2023 09:34:38 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=E5=85=B3=E9=97=ADpcap=E5=8F=A5?= =?UTF-8?q?=E6=9F=84=EF=BC=8C=E9=87=8A=E6=94=BE=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/service/dhcpd/dhcpd_network.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcs/service/dhcpd/dhcpd_network.c b/srcs/service/dhcpd/dhcpd_network.c index 40d7597..8d4cf50 100644 --- a/srcs/service/dhcpd/dhcpd_network.c +++ b/srcs/service/dhcpd/dhcpd_network.c @@ -717,6 +717,9 @@ void init_filter() { bpf.len = fcode.bf_len; bpf.filter = g_filters; + + pcap_close(pd); + pcap_freecode(&fcode); #endif }