forked from osmocom/wireshark
Use proper operator to find odd number (CID-1355647)
Use binary AND instead of modulus operator to find odd number. Change-Id: I8eb819593ead66381cbe46997aab9d31955bad0c Reviewed-on: https://code.wireshark.org/review/14993 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
61677f9c3f
commit
7f1d085854
1 changed files with 1 additions and 1 deletions
|
@ -8782,7 +8782,7 @@ dissect_nt_transaction_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
|
|||
offset += 2;
|
||||
|
||||
/* this is a padding byte */
|
||||
if (offset%1) {
|
||||
if (offset&1) {
|
||||
/* pad byte */
|
||||
proto_tree_add_item(tree, hf_smb_padding, tvb, offset, 1, ENC_NA);
|
||||
offset += 1;
|
||||
|
|
Loading…
Reference in a new issue