git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tevent: fix crash bug in tevent_queue_immediate_trigger()
[samba.git]
/
lib
/
tevent
/
tevent_queue.c
diff --git
a/lib/tevent/tevent_queue.c
b/lib/tevent/tevent_queue.c
index 930319c226254fb0c40c023d079a5e5cf79902d7..35742e595f51e7b0324031440a3cfc331bab7f52 100644
(file)
--- a/
lib/tevent/tevent_queue.c
+++ b/
lib/tevent/tevent_queue.c
@@
-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);
}