diff --git a/apps/app_queue.c b/apps/app_queue.c index 531297025..eb652747d 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2852,8 +2852,9 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce strcpy(di->interface, cur->interface); AST_LIST_INSERT_TAIL(dialed_interfaces, di, list); } else { + if (di) + ast_log(LOG_DEBUG, "Skipping dialing interface '%s' since it has already been dialed\n", di->interface); AST_LIST_UNLOCK(dialed_interfaces); - ast_log(LOG_DEBUG, "Skipping dialing interface '%s' since it has already been dialed\n", di->interface); free(tmp); continue; }