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: 14.0.0-beta1~250^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbb47e0a47f3205898f77e5c1479f92e880574be;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 0123e473ab..40aed2fe54 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4189,7 +4189,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;