From: ibercom Date: Mon, 18 Apr 2016 09:53:14 +0000 (+0200) Subject: app_queue: Frequent segfaults in function can_ring_entry() X-Git-Tag: 13.9.0-rc1~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9d8b60b211377f2023ebfbfdd157cfb668de6e;p=thirdparty%2Fasterisk.git app_queue: Frequent segfaults in function can_ring_entry() ASTERISK-25888 #close Change-Id: I007a2f2dd99823e04fb5be3ff01f02b0a2956117 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 939a0e2ad9..34fdfe7a3e 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;