]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix "sip show user <tab>", so that it actually shows results, instead of just complet...
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Jan 2011 18:41:26 +0000 (18:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Jan 2011 18:41:26 +0000 (18:41 +0000)
(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

channels/chan_sip.c

index 27d6e1c6205ee41580d42524c23bf20e1fd44376..6b45a48139d6e2d6157da244f9ee929c037741e9 100644 (file)
@@ -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;