Fix Win32 compilation, broken by yesterday's checkin.

svn path=/trunk/; revision=14664
This commit is contained in:
Gerald Combs 2005-06-16 19:51:14 +00:00
parent 488483855f
commit 06a47f5880
1 changed files with 3 additions and 2 deletions

View File

@ -1689,11 +1689,12 @@ dissect_smpp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint32 offset = 0;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint16 pdu_len = tvb_get_ntohl(tvb, offset);
if (pdu_len < 1)
THROW(ReportedBoundsError);
gint pdu_real_len = tvb_length_remaining(tvb, offset);
tvbuff_t *pdu_tvb;
if (pdu_len < 1)
THROW(ReportedBoundsError);
if (pdu_real_len <= 0)
return;
if (pdu_real_len > pdu_len)