forked from osmocom/wireshark
rpc: remove two unnecessary DISSECTOR_ASSERT()s
Their conditions are always true. Both tvb_captured_length_remaining() and tvb_reported_length_remaining() return a gint which is always >= 0. Change-Id: Ic0c13d17361389053466573fafff44b2c2b478ed Reviewed-on: https://code.wireshark.org/review/23186 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
63b66cc7c8
commit
5178905063
|
@ -1349,8 +1349,6 @@ dissect_rpc_authgss_token(tvbuff_t* tvb, proto_tree* tree, int offset,
|
|||
if (opaque_length != 0) {
|
||||
length = tvb_captured_length_remaining(tvb, offset);
|
||||
reported_length = tvb_reported_length_remaining(tvb, offset);
|
||||
DISSECTOR_ASSERT(length >= 0);
|
||||
DISSECTOR_ASSERT(reported_length >= 0);
|
||||
if (length > reported_length)
|
||||
length = reported_length;
|
||||
if ((guint32)length > opaque_length)
|
||||
|
|
Loading…
Reference in New Issue