Optimize dissect_sip_uri()
authorJakub Zawadzki <darkjames@darkjames.pl>
Wed, 18 Jun 2014 15:37:15 +0000 (17:37 +0200)
committerAnders Broman <a.broman58@gmail.com>
Thu, 19 Jun 2014 00:08:04 +0000 (00:08 +0000)
commit5844e129891e39beeab038abfe8a7cc7bfb08ad1
tree4af3185ca8d1910e6a5db3b735369a22555d6ba1
parent153793aaa807aa52bec747ef3822bdcd81d03a7c
Optimize dissect_sip_uri()

- Combine tvb_find_guint8() for comma, semicolon into one tvb_pbrk_guint8()

- Instead of fetching each character use tvb_pbrk_guint8() to fast
  forward.

- Remove not needed tvb_find_guint8() call, as the result is discarded.

Change-Id: I38d6775b187146656d47cea9b64f8e0ccad18d36
Reviewed-on: https://code.wireshark.org/review/2384
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-sip.c