diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-11-30 19:04:58 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-11-30 19:05:23 -0800 |
commit | 134521f8ae28afd069fef5a696421241bbaacc3f (patch) | |
tree | a95fe836a4b9788ae30e75ba8425d7e24550482f | |
parent | 0471082f20bcc02196bd85f665f7f34c71ba8845 (diff) | |
download | libpcap-134521f8ae28afd069fef5a696421241bbaacc3f.tar.gz |
Pass the right packet data pointer to bpf_filter().
-rw-r--r-- | savefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |