Merged revisions 303858 via svnmerge from

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
This commit is contained in:
Tilghman Lesher
2011-01-25 18:55:27 +00:00
parent 8e51d30b67
commit ab1f22bb75
+3
View 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;