From 22e7ddb63789ff603641be116ee24834ca7631f9 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 2 Oct 2020 10:16:13 -0700 Subject: [PATCH] LBMSRS: Break out of a loop. Break out of a loop if our offset advances. Fixes #16886. --- epan/dissectors/packet-lbmsrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-lbmsrs.c b/epan/dissectors/packet-lbmsrs.c index d428cea316..369d55b256 100644 --- a/epan/dissectors/packet-lbmsrs.c +++ b/epan/dissectors/packet-lbmsrs.c @@ -2279,7 +2279,7 @@ static guint dissect_lbmsrs_batch(tvbuff_t * tvb, packet_info * pinfo, proto_tre } /*if nothing is dissected then return the current offset*/ - if (FALSE == can_dissect_further) + if (FALSE == can_dissect_further || len_dissected < 1) { col_append_fstr(pinfo->cinfo, COL_INFO, "SIR:%u SER:%u SDR:%u RIR:%u RER:%u RDR:%u WIR:%u WER:%u WDR:%u SLI:%u]", cnt_sir, cnt_ser, cnt_sdr, cnt_rir, cnt_rer, cnt_rdr, cnt_wir, cnt_wer, cnt_wdr, cnt_sli);