about summary refs log tree commit diff stats
path: root/examples/parse_eapol
diff options
context:
space:
mode:
Diffstat (limited to 'examples/parse_eapol')
-rw-r--r--examples/parse_eapol/parse_eapol.c7
1 files changed, 0 insertions, 7 deletions
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() {
95} 95}
96 96
97int main(int argc, char **argv) { 97int main(int argc, char **argv) {
98 struct bpf_program *filter = NULL;
99 pcap_t *handle = NULL; 98 pcap_t *handle = NULL;
100 pcap_dumper_t *dumper = NULL; 99 pcap_dumper_t *dumper = NULL;
101 char errbuf[PCAP_ERRBUF_SIZE]; 100 char errbuf[PCAP_ERRBUF_SIZE];
@@ -122,12 +121,6 @@ int main(int argc, char **argv) {
122 exit(EXIT_FAILURE); 121 exit(EXIT_FAILURE);
123 } 122 }
124 123
125 if ((filter = malloc(sizeof(struct bpf_program))) == NULL) {
126 fprintf(stderr, "[!] There was an error allocating memory for the filter.\n");
127 pcap_close(handle);
128 exit(EXIT_FAILURE);
129 }
130
131 printf("[+] Setup Complete\n"); 124 printf("[+] Setup Complete\n");
132 125
133 dumper = pcap_dump_open(handle, "/tmp/parse_eapol.pcap"); 126 dumper = pcap_dump_open(handle, "/tmp/parse_eapol.pcap");