coap: Fix "More Flag" value

Use the raw value for the block "More Flag", not the already adjusted one.

Change-Id: I13ddd24c4f9b9201798d18abe008945879f03774
Reviewed-on: https://code.wireshark.org/review/37442
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2020-06-10 15:54:56 +02:00
parent be1ac1333d
commit 86c6befcab
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ dissect_coap_opt_block(tvbuff_t *tvb, proto_item *head_item, proto_tree *subtree
/* More flag in the end of the option */
coinfo->block_mflag = (val & COAP_BLOCK_MFLAG_MASK) >> 3;
proto_tree_add_uint(subtree, dissect_hf->hf.opt_block_mflag,
tvb, offset + opt_length - 1, 1, coinfo->block_mflag);
tvb, offset + opt_length - 1, 1, val);
/* block size */
encoded_block_size = val & COAP_BLOCK_SIZE_MASK;