mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix tests compilation
This commit is contained in:
parent
0b322b0941
commit
0e3a642348
@ -155,7 +155,7 @@ static void dump_to_file_cb(struct pcapdroid *pd, const int8_t *buf, int len) {
|
||||
|
||||
// write the PCAP header
|
||||
pcap_hdr_t *hdr;
|
||||
assert(pcap_get_header(pd->pcap_dump.dumper, (char **)&hdr) == sizeof(*hdr));
|
||||
assert(pcap_get_preamble(pd->pcap_dump.dumper, (char **)&hdr) == sizeof(*hdr));
|
||||
assert(fwrite(hdr, sizeof(*hdr), 1, out_fp) == 1);
|
||||
pd_free(hdr);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user