diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-12-03 09:49:52 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-12-03 09:49:52 +0000 |
commit | 191aaba2171fc010baa1b0ab058168589be6b06c (patch) | |
tree | 1adfb35b68caba78ca880ba63513e72bf7555f08 /epan/dissectors/packet-sip.c | |
parent | 09a694823fa40f6eb8c6ad20112a8a5f1a4f9936 (diff) |
Wrong check for quote_offset.
Fixes Bug 8042 - SIP infinite loop.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8042
svn path=/trunk/; revision=46340
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r-- | epan/dissectors/packet-sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index 3b78aa06f6..a9069f1116 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -1202,7 +1202,7 @@ dissect_sip_p_charging_func_addresses(tvbuff_t *tvb, proto_tree* tree, packet_in while (line_end_offset > current_offset){ /* Do we have a quoted string ? */ quote_offset = tvb_find_guint8(tvb, current_offset, line_end_offset - current_offset, '"'); - if(quote_offset){ + if(quote_offset>0){ /* Find end of quoted string */ quote_offset = tvb_find_guint8(tvb, quote_offset+1, line_end_offset - current_offset, '"'); /* Find parameter end */ |