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:
Guy Harris 2021-02-02 21:33:24 -08:00
parent 5c3a651ea2
commit fbdd2446e1
1 changed files with 1 additions and 1 deletions

View File

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