Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass the right packet data pointer to bpf_filter().

  • Loading branch information...
commit 3127856ef665d3f318030c088d91514555e2d842 1 parent 279b365
@guyharris guyharris authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  savefile.c
View
2  savefile.c
@@ -383,7 +383,7 @@ pcap_offline_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
}
if ((fcode = p->fcode.bf_insns) == NULL ||
- bpf_filter(fcode, p->buffer, h.len, h.caplen)) {
+ bpf_filter(fcode, data, h.len, h.caplen)) {
(*callback)(user, &h, data);
if (++n >= cnt && cnt > 0)
break;
Please sign in to comment.
Something went wrong with that request. Please try again.