diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-04-11 22:07:52 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-04-11 22:07:52 +0000 |
commit | fb4d5fb6a67ed4cf79dd4543df4a115857efb0bf (patch) | |
tree | 322f47a7e1488fb8b0518cfaed521b917ef766ad /channels/chan_sip.c | |
parent | 677347edabc671ee5e20784b7f9a574249a9d371 (diff) |
fix logic error; don't test for rtcache flag unless asked to (issue #6923)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c2f5be3d9..c9ad6b1b4 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8502,7 +8502,7 @@ static char *complete_sip_peer(const char *word, int state, int flags2) ASTOBJ_CONTAINER_TRAVERSE(&peerl, !result, do { /* locking of the object is not required because only the name and flags are being compared */ if (!strncasecmp(word, iterator->name, wordlen) && - ast_test_flag(&iterator->flags[1], flags2) && + (!flags2 || ast_test_flag(&iterator->flags[1], flags2)) && ++which > state) result = ast_strdup(iterator->name); } while(0) ); |