Don't unref user twice on failure. Also, when adding sorted list of users, it is...
authorTerry Wilson <twilson@digium.com>
Mon, 14 Apr 2008 19:12:27 +0000 (19:12 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 14 Apr 2008 19:12:27 +0000 (19:12 +0000)
commit6d34b5fafe5e1dc58f6d109edb1b394d44dde39e
tree1f1dc7444cb6a6643a196785da4a419fa3d7da26
parent6e6d6f2e103e377e25eb96b2402a3f8c75daddbc
Don't unref user twice on failure.  Also, when adding sorted list of users, it is best to check the entry already in the list for a "next" entry instead of the newly created entry...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_phoneprov.c