From: Tilghman Lesher Date: Tue, 25 Jan 2011 18:41:26 +0000 (+0000) Subject: Fix "sip show user ", so that it actually shows results, instead of just complet... X-Git-Tag: 1.6.2.18-rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0585c53d3f8a04af1fb197a939158ab9057ede1b;p=thirdparty%2Fasterisk.git Fix "sip show user ", so that it actually shows results, instead of just completing the last entry. (closes issue #16675) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@303858 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 27d6e1c620..6b45a48139 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15859,6 +15859,9 @@ static char *complete_sip_user(const char *word, int state) } ao2_unlock(user); unref_peer(user, "complete sip user"); + if (result) { + break; + } } ao2_iterator_destroy(&user_iter); return result;