aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;