diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-08-11 21:39:22 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-08-11 21:39:22 +0000 |
commit | ccf8787370089329c7d8cda12401c10ee5adf9f9 (patch) | |
tree | 7c56d12e1b828a0efc90c713a6d522dbf9ef04eb /epan/dissectors/packet-sdp.c | |
parent | 7de3dc31671e34d7414d88e8b091aa1b139641ad (diff) | |
download | wireshark-ccf8787370089329c7d8cda12401c10ee5adf9f9.tar.gz |
Add a warning message if H264 profile-level-id parameter wasn't
posible to parse.
svn path=/trunk/; revision=33776
Diffstat (limited to 'epan/dissectors/packet-sdp.c')
-rw-r--r-- | epan/dissectors/packet-sdp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c index 82fc778c9c..448cf1fbd1 100644 --- a/epan/dissectors/packet-sdp.c +++ b/epan/dissectors/packet-sdp.c @@ -1374,9 +1374,11 @@ decode_sdp_fmtp(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint offset tokenlen = end_offset - offset; format_specific_parameter = tvb_get_ephemeral_string(tvb, offset, tokenlen); data_tvb = ascii_bytes_to_tvb(tvb, pinfo, tokenlen, format_specific_parameter); - if (data_tvb) { - length = tvb_length(data_tvb); - } + if(!data_tvb){ + item = proto_tree_add_text(tree, tvb, offset, tokenlen, "Could not convert '%s' to bytes",format_specific_parameter); + return; + } + length = tvb_length(data_tvb); if (length == 3){ if(h264_handle && data_tvb){ dissect_h264_profile(data_tvb, pinfo, tree); |