Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong use of pcap_thread_set_filter in pcap.c #82

Closed
klaus3000 opened this issue Sep 16, 2016 · 0 comments
Closed

wrong use of pcap_thread_set_filter in pcap.c #82

klaus3000 opened this issue Sep 16, 2016 · 0 comments
Milestone

Comments

@klaus3000
Copy link

if (bpf_program_str && (err = pcap_thread_set_filter(&pcap_thread, bpf_program_str, 0))) {

The last parameter must not be 0, but must be strlen(bpf_program_str)

@jelu jelu closed this as completed in 02a7621 Sep 16, 2016
jelu added a commit that referenced this issue Sep 16, 2016
Fix #82: Oops, `pcap_thread_set_filter()` had changed during developm…
@jelu jelu added this to the v2.2.0 milestone Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants