summaryrefslogtreecommitdiff
path: root/source4/lib/events/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/events/events.c')
-rw-r--r--source4/lib/events/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/events/events.c b/source4/lib/events/events.c
index 4e6eeef78e..7aa8d680fc 100644
--- a/source4/lib/events/events.c
+++ b/source4/lib/events/events.c
@@ -115,6 +115,7 @@ struct fd_event *event_add_fd(struct event_context *ev, TALLOC_CTX *mem_ctx,
*/
uint16_t event_get_fd_flags(struct fd_event *fde)
{
+ if (!fde) return 0;
return fde->event_ctx->ops->get_fd_flags(fde);
}
@@ -123,6 +124,7 @@ uint16_t event_get_fd_flags(struct fd_event *fde)
*/
void event_set_fd_flags(struct fd_event *fde, uint16_t flags)
{
+ if (!fde) return;
fde->event_ctx->ops->set_fd_flags(fde, flags);
}