forked from osmocom/wireshark
Get rid of some uses of tvb_get_ptr().
Change-Id: I85232f984f273c9a6ceccd12df5b77a4d131596c Reviewed-on: https://code.wireshark.org/review/1648 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
09bf1702a6
commit
84fcadcb05
|
@ -235,9 +235,9 @@ dissect_pn_user_data_bytes(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
|
|||
{
|
||||
if (tree) {
|
||||
if(iSelect == FRAG_DATA)
|
||||
proto_tree_add_bytes(tree, hf_pn_frag_bytes, tvb, offset, length, tvb_get_ptr(tvb,offset, length));
|
||||
proto_tree_add_item(tree, hf_pn_frag_bytes, tvb, offset, length, ENC_NA);
|
||||
else
|
||||
proto_tree_add_bytes(tree, hf_pn_user_bytes, tvb, offset, length, tvb_get_ptr(tvb,offset, length));
|
||||
proto_tree_add_item(tree, hf_pn_user_bytes, tvb, offset, length, ENC_NA);
|
||||
}
|
||||
return offset + length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue