diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2010-08-25 14:10:58 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2010-08-25 14:10:58 +0000 |
commit | f5e1f23cacdc561ea253945018f18d5d2e144397 (patch) | |
tree | 0eab8b2cc690d255f345cc6898f0581579e7f6d8 /epan | |
parent | c53d8b200bb44fba18dba0bf1001574e8838ecdc (diff) |
Fix wrong length of CSeq Method parameter
svn path=/trunk/; revision=33920
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index 607e5b2f19..f13e48b940 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -2297,7 +2297,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr } } - if (sub_value_offset == linelen) + if (sub_value_offset == value_len) { /* Didn't find method name */ THROW(ReportedBoundsError); @@ -2305,7 +2305,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr } /* Extract method name from value */ - strlen_to_copy = (int)linelen-sub_value_offset; + strlen_to_copy = (int)value_len-sub_value_offset; if (strlen_to_copy > MAX_CSEQ_METHOD_SIZE) { /* Note the error in the protocol tree */ if (hdr_tree) { |