Fix tests compilation

This commit is contained in:
emanuele-f 2023-01-07 19:53:19 +01:00
parent 0b322b0941
commit 0e3a642348

View File

@ -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);
}