{
struct ast_member_interfaces *curint, *newint;
+ if (!interface)
+ return 0;
+
AST_LIST_LOCK(&interfaces);
AST_LIST_TRAVERSE(&interfaces, curint, list) {
if (!strcasecmp(curint->interface, interface))
struct member *mem;
int ret = 0;
+ if (!interface)
+ return ret;
+
ast_mutex_lock(&qlock);
for (q = queues; q && !ret; q = q->next) {
ast_mutex_lock(&q->lock);
ret = 1;
break;
}
+ mem = mem->next;
}
ast_mutex_unlock(&q->lock);
}
{
struct ast_member_interfaces *curint;
+ if (!interface)
+ return 0;
+
AST_LIST_LOCK(&interfaces);
AST_LIST_TRAVERSE_SAFE_BEGIN(&interfaces, curint, list) {
if (!strcasecmp(curint->interface, interface) && !interface_exists_global(interface)) {