summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/service.c b/source4/smbd/service.c
index c90792e452..270eeb4f22 100644
--- a/source4/smbd/service.c
+++ b/source4/smbd/service.c
@@ -249,7 +249,9 @@ void server_destroy_connection(struct server_connection *srv_conn)
close(srv_conn->event.fde->fd);
event_remove_fd(srv_conn->event.ctx, srv_conn->event.fde);
+ srv_conn->event.fde = NULL;
event_remove_timed(srv_conn->event.ctx, srv_conn->event.idle);
+ srv_conn->event.idle = NULL;
talloc_destroy(srv_conn->mem_ctx);
}
@@ -262,6 +264,7 @@ void server_io_handler(struct event_context *ev, struct fd_event *fde, time_t t,
if (flags & EVENT_FD_WRITE) {
conn->service->ops->send_handler(conn, t, flags);
+ return;
}
if (flags & EVENT_FD_READ) {