]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 215681 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Wed, 2 Sep 2009 21:52:16 +0000 (21:52 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 2 Sep 2009 21:52:16 +0000 (21:52 +0000)
commit58618f5e95e68fdc6e7c7d0b71db956d8a1d8107
tree6562ee5c3db96c3aaea380001ec2a5a11d2e9531
parenta5df0a703ed64c08c2ca9d06c545a91536c36c7c
Merged revisions 215681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r215681 | dvossel | 2009-09-02 16:39:31 -0500 (Wed, 02 Sep 2009) | 10 lines

  port string to int conversion using sscanf

  There are several instances where a port is parsed
  from a uri or some other source and converted to
  an int value using atoi(), if for some reason the
  port string is empty, then a standard port is used.
  This logic is used over and over, so I created a function
  to handle it in a safer way using sscanf().
........

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