diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 14:10:58 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 14:10:58 +0000 |
commit | f20f21642a5e28e482fc03cf3649d0e99330e41e (patch) | |
tree | 0eab8b2cc690d255f345cc6898f0581579e7f6d8 /epan/dissectors/packet-sip.c | |
parent | 45cad00a2eed6d5daa810f1344a2ed9633f9d501 (diff) |
Fix wrong length of CSeq Method parameter
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33920 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-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) { |