aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-25 18:41:26 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-25 18:41:26 +0000
commit9e24d1ddead3ba0a467be501ffff5c7638979aef (patch)
tree41a31fc8225702746db22f912913869b0a8aaab0 /channels
parent0013388425c43990cc5c06b5d803ab6519f8aa97 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@303858 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 27d6e1c62..6b45a4813 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;