diff --git a/daemon/redis.c b/daemon/redis.c index f2d91fc27..a56a6972a 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -1285,6 +1285,8 @@ static int redis_link_tags(struct redis *r, struct call *c, struct redis_list *t return -1; for (l = q.head; l; l = l->next) { other_ml = l->data; + if (!other_ml) + return -1; g_hash_table_insert(ml->other_tags, &other_ml->tag, other_ml); } g_queue_clear(&q);