From 32b4320d620ffff5c55f111fc22f22fdb07f8c60 Mon Sep 17 00:00:00 2001 From: ibercom Date: Mon, 18 Apr 2016 11:53:14 +0200 Subject: [PATCH] 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 4a8029080d..fa432cb76f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3641,7 +3641,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; -- 2.47.2