Fix: Malformed packet if port is missing from path.

svn path=/trunk/; revision=33209
This commit is contained in:
Anders Broman 2010-06-11 11:49:01 +00:00
parent db4a00b4e4
commit 326ec92f7c
1 changed files with 12 additions and 10 deletions

View File

@ -1686,7 +1686,8 @@ static void dissect_sdp_media_attribute(tvbuff_t *tvb, packet_info *pinfo, proto
/* Port is after next ':' */
port_offset = tvb_find_guint8(tvb, address_offset, -1, ':');
/* Check if port is present if not skipp */
if(port_offset!=-1){
/* Port ends with '/' */
port_end_offset = tvb_find_guint8(tvb, port_offset, -1, '/');
@ -1698,6 +1699,7 @@ static void dissect_sdp_media_attribute(tvbuff_t *tvb, packet_info *pinfo, proto
msrp_transport_address_set = TRUE;
}
}
}
break;
case SDP_H248_ITEM:
/* Decode h248 item ITU-T Rec. H.248.12 (2001)/Amd.1 (11/2002)*/