forked from osmocom/wireshark
pcapng: Fix copy-and-pasteo.
Found by Coverity; fixes Coverity CID 1472770. (At least *this* Coverity report doesn't use that tainted word "tainted", which, most of the time, means "ZOMG UR PROGRAM READS EXTERNAL FILEZ!!!!111ONE!!!")
This commit is contained in:
parent
5c3a651ea2
commit
fbdd2446e1
|
@ -975,7 +975,7 @@ pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh,
|
|||
insn_in += 1;
|
||||
memcpy(&insn->k, insn_in, 4);
|
||||
if (section_info->byte_swapped)
|
||||
insn->code = GUINT32_SWAP_LE_BE(insn->code);
|
||||
insn->k = GUINT32_SWAP_LE_BE(insn->k);
|
||||
insn_in += 4;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue