Skip to content
Browse files

Pass the right packet data pointer to bpf_filter().

  • Loading branch information...
1 parent 279b365 commit 3127856ef665d3f318030c088d91514555e2d842 @guyharris guyharris committed Nov 30, 2011
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;

0 comments on commit 3127856

Please sign in to comment.
Something went wrong with that request. Please try again.