From 8e09d29df19312583747a3de00fe4269c17e6586 Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 11 Dec 2021 15:24:52 +0000 Subject: examples: Remove capture filter from parser examples --- examples/parse_eapol/parse_eapol.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'examples/parse_eapol/parse_eapol.c') diff --git a/examples/parse_eapol/parse_eapol.c b/examples/parse_eapol/parse_eapol.c index 259ee5f..cf35a6f 100644 --- a/examples/parse_eapol/parse_eapol.c +++ b/examples/parse_eapol/parse_eapol.c @@ -95,7 +95,6 @@ void helpexit() { } int main(int argc, char **argv) { - struct bpf_program *filter = NULL; pcap_t *handle = NULL; pcap_dumper_t *dumper = NULL; char errbuf[PCAP_ERRBUF_SIZE]; @@ -122,12 +121,6 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } - if ((filter = malloc(sizeof(struct bpf_program))) == NULL) { - fprintf(stderr, "[!] There was an error allocating memory for the filter.\n"); - pcap_close(handle); - exit(EXIT_FAILURE); - } - printf("[+] Setup Complete\n"); dumper = pcap_dump_open(handle, "/tmp/parse_eapol.pcap"); -- cgit 1.4.1