[Asterisk-code-review] app queue: Fix crash when using 'b' option on non-ringall qu... (asterisk[master])

Friendly Automation asteriskteam at digium.com
Wed Jan 2 16:38:05 CST 2019


Friendly Automation has submitted this change and it was merged. ( https://gerrit.asterisk.org/10844 )

Change subject: app_queue: Fix crash when using 'b' option on non-ringall queue.
......................................................................

app_queue: Fix crash when using 'b' option on non-ringall queue.

When using the 'b' option to Queue with a queue that was not configured
for ring all a crash would occur as the wrong pointer would be used.

ASTERISK-28218

Change-Id: If1390f64e321047dff24fd2410c95dde74904980
---
M apps/app_queue.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  Friendly Automation: Approved for Submit



diff --git a/apps/app_queue.c b/apps/app_queue.c
index 264b54f..60be305 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4667,7 +4667,7 @@
 			/* Ring just the best channel */
 			ast_debug(1, "Trying '%s' with metric %d\n", best->interface, best->metric);
 			ret = ring_entry(qe, best, busies);
-			if (qe->predial_callee && cur->chan) {
+			if (qe->predial_callee && best->chan) {
 				ast_autoservice_start(best->chan);
 			}
 		}

-- 
To view, visit https://gerrit.asterisk.org/10844
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If1390f64e321047dff24fd2410c95dde74904980
Gerrit-Change-Number: 10844
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua C. Colp <jcolp at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation (1000185)
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190102/be030d37/attachment-0001.html>


More information about the asterisk-code-review mailing list