tevent: fix crash bug in tevent_queue_immediate_trigger()
[samba.git] / lib / tevent / tevent_queue.c
index 930319c226254fb0c40c023d079a5e5cf79902d7..35742e595f51e7b0324031440a3cfc331bab7f52 100644 (file)
@@ -141,6 +141,10 @@ static void tevent_queue_immediate_trigger(struct tevent_context *ev,
                return;
        }
 
+       if (!q->list) {
+               return;
+       }
+
        q->list->triggered = true;
        q->list->trigger(q->list->req, q->list->private_data);
 }