make sure we're not stuck in the while loop

svn path=/trunk/; revision=53248
This commit is contained in:
Martin Kaiser 2013-11-11 12:20:12 +00:00
parent 2759cfb9bd
commit f771b7874a
1 changed files with 5 additions and 0 deletions

View File

@ -183,6 +183,11 @@ static void dissect_mqpcf_parm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *mq
while (tvb_length_remaining(tvb, xOfs) >= 16)
{
uLen = tvb_get_guint32_endian(tvb, xOfs + 4, bLittleEndian);
if (uLen == 0)
{
/* XXX - add expert info here? */
break;
}
uCnt++;
xOfs += uLen;
}