BER: fix There are identical sub-expressions 'tvb_reported_length_remaining(tvb, offset)' to the left and to the right of the '==' operator found by PVS Studio (V501)
Change-Id: I9e462461c66f2f3338a059b64dbc28682df94ae2 Reviewed-on: https://code.wireshark.org/review/8787 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
b5b3a6b9af
commit
9d3e8f9ac5
|
@ -3358,7 +3358,7 @@ printf("SQ OF dissect_ber_sq_of(%s) entered\n", name);
|
|||
* dissecting a single item.
|
||||
*/
|
||||
/* XXX Do we really need to count them at all ? ronnie */
|
||||
if (tvb_reported_length_remaining(tvb, offset) == tvb_reported_length_remaining(tvb, offset)) {
|
||||
if (tvb_captured_length_remaining(tvb, offset) == tvb_reported_length_remaining(tvb, offset)) {
|
||||
have_cnt = TRUE;
|
||||
while (offset < end_offset) {
|
||||
guint32 len;
|
||||
|
|
Loading…
Reference in New Issue