]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 303858 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Jan 2011 18:55:27 +0000 (18:55 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Jan 2011 18:55:27 +0000 (18:55 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r303858 | tilghman | 2011-01-25 12:41:26 -0600 (Tue, 25 Jan 2011) | 5 lines

  Fix "sip show user <tab>", 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.8@303860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 5c0c3507a4790fa72bcc1a158ceb7263f9594c8b..f49c438ce58300668d40896d62b4c5ab86f17649 100644 (file)
@@ -16583,6 +16583,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;