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

ibercom asteriskteam at digium.com
Mon Apr 18 05:06:55 CDT 2016


ibercom has uploaded a new change for review.

  https://gerrit.asterisk.org/2636

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/36/2636/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 0123e47..40aed2f 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4189,7 +4189,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/2636
To unsubscribe, visit https://gerrit.asterisk.org/settings

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



More information about the asterisk-code-review mailing list