diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-08-12 19:23:08 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-08-12 19:23:08 +0000 |
commit | 4b641014a28ad66bc10596b75e8862799ced6a49 (patch) | |
tree | 1c6874e386afa89d450c87e3e1086d1e422558c9 | |
parent | 57b8c51a2e161c486e36d7ac4e31dea9eb2c0b5e (diff) |
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9031 :
SIP contact-param parsing should be stopped when finding a comma separator
svn path=/trunk/; revision=51321
-rw-r--r-- | epan/dissectors/packet-sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index 7ce25cddea..4fbef25673 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -1590,6 +1590,10 @@ dissect_sip_contact_item(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gi /* In case there are more parameters, point to the start of it */ contact_params_start_offset = current_offset+1; queried_offset = contact_params_start_offset; + if (c == ',') { + /* comma separator found, stop parsing of current contact-param here */ + break; + } } return current_offset; |