Fix port parsing in check_via.
authorMark Michelson <mmichelson@digium.com>
Fri, 9 Jul 2010 19:46:20 +0000 (19:46 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 9 Jul 2010 19:46:20 +0000 (19:46 +0000)
commite46325f18c7a2d135422eb8d05bfad8e4e19ec1a
tree8599f28d99005d654c0a71abcc83acd3aa4bdceb
parentd348c9aa1ea5771b51ad9883420cb41a1fc27b3e
Fix port parsing in check_via.

If a Via header contained an IPv6 address, we would not properly parse
the port. We would instead get the information after the first colon in
the address.

(closes issue #17614)
Reported by: oej
Patches:
      diff uploaded by sperreault (license 252)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@275308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c