Skip to content

Commit

Permalink
app_queue: Frequent segfaults in function can_ring_entry()
Browse files Browse the repository at this point in the history
ASTERISK-25888 #close

Change-Id: I007a2f2dd99823e04fb5be3ff01f02b0a2956117
  • Loading branch information
ibercom123 committed Apr 18, 2016
1 parent 56c8182 commit 3b9d8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app_queue.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3b9d8b6

Please sign in to comment.