Initialize variables before calling parse_uri
authorTerry Wilson <twilson@digium.com>
Mon, 17 Oct 2011 17:38:53 +0000 (17:38 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 17 Oct 2011 17:38:53 +0000 (17:38 +0000)
commit9f83c2b513af273d1129d5335508eb3723d425bb
treed74c2cdae26bc989c0bb208bef0629736af8de01
parentca0f2acab77e52464dc126f76c212de528edb1a5
Initialize variables before calling parse_uri

If parse_uri was called with an empty URI, some pointers would be
modified and an invalid read could result. This patch avoids calling
parse_uri with an empty contact uri when parsing REGISTER requests.

AST-2011-012

(closes issue ASTERISK-18668)
........

Merged revisions 341189 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 341190 from http://svn.asterisk.org/svn/asterisk/branches/10

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