From 3b9d8b60b211377f2023ebfbfdd157cfb668de6e Mon Sep 17 00:00:00 2001 From: ibercom Date: Mon, 18 Apr 2016 11:53:14 +0200 Subject: app_queue: Frequent segfaults in function can_ring_entry() ASTERISK-25888 #close Change-Id: I007a2f2dd99823e04fb5be3ff01f02b0a2956117 --- apps/app_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 939a0e2ad..34fdfe7a3 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4164,7 +4164,7 @@ static int can_ring_entry(struct queue_ent *qe, struct callattempt *call) 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; -- cgit v1.2.3