[Asterisk-code-review] app queue: Frequent segfaults in function can ring entry() (asterisk[11])

ibercom asteriskteam at digium.com
Mon Apr 18 04:58:49 CDT 2016


ibercom has uploaded a new change for review.

  https://gerrit.asterisk.org/2634

Change subject: app_queue: Frequent segfaults in function can_ring_entry()
......................................................................

app_queue: Frequent segfaults in function can_ring_entry()

ASTERISK-25888 #close

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/34/2634/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 4a80290..fa432cb 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3641,7 +3641,7 @@
 		return 0;
 	}
 
-	if (call->member->in_call && call->lastqueue->wrapuptime) {
+	if (call->member->in_call && call->lastqueue && call->lastqueue->wrapuptime) {
 		ast_debug(1, "%s is in call, so not available (wrapuptime %d)\n",
 			call->interface, call->lastqueue->wrapuptime);
 		return 0;

-- 
To view, visit https://gerrit.asterisk.org/2634
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I007a2f2dd99823e04fb5be3ff01f02b0a2956117
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: ibercom <ibercom123 at gmail.com>



More information about the asterisk-code-review mailing list