Skip to content

Commit

Permalink
Fix #82: Oops, pcap_thread_set_filter() had changed during developm…
Browse files Browse the repository at this point in the history
…ent and missed this
  • Loading branch information
jelu committed Sep 16, 2016
1 parent 0eea8c9 commit 02a7621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ Pcap_init(const char *device, int promisc, int monitor, int immediate, int threa
dsyslogf(LOG_ERR, "unable to set snap length: %s", pcap_thread_strerr(err));
exit(1);
}
if (bpf_program_str && (err = pcap_thread_set_filter(&pcap_thread, bpf_program_str, 0))) {
if (bpf_program_str && (err = pcap_thread_set_filter(&pcap_thread, bpf_program_str, strlen(bpf_program_str)))) {
dsyslogf(LOG_ERR, "unable to set pcap filter: %s", pcap_thread_strerr(err));
exit(1);
}
Expand Down

0 comments on commit 02a7621

Please sign in to comment.