summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/events.c4
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c
index 06d956a014..298aa6a7b8 100644
--- a/source4/lib/events.c
+++ b/source4/lib/events.c
@@ -149,7 +149,7 @@ static void calc_maxfd(struct event_context *ev)
this is used by modules that need to call on the events of a lower module
*/
-void event_context_merge(struct event_context *ev, struct event_context *ev2)
+struct event_context * event_context_merge(struct event_context *ev, struct event_context *ev2)
{
DLIST_CONCATENATE(ev->fd_events, ev2->fd_events, struct fd_event *);
DLIST_CONCATENATE(ev->timed_events, ev2->timed_events, struct timed_event *);
@@ -164,6 +164,8 @@ void event_context_merge(struct event_context *ev, struct event_context *ev2)
event_context_destroy(ev2);
calc_maxfd(ev);
+
+ return ev;
}
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c
index 078075a11f..c9073b04cf 100644
--- a/source4/ntvfs/cifs/vfs_cifs.c
+++ b/source4/ntvfs/cifs/vfs_cifs.c
@@ -163,10 +163,8 @@ static NTSTATUS cvfs_connect(struct smbsrv_request *req, const char *sharename)
private->transport->event.fde->handler = cifs_socket_handler;
private->transport->event.fde->private = private;
- event_context_merge(tcon->smb_conn->connection->event.ctx,
- private->transport->event.ctx);
-
- private->transport->event.ctx = tcon->smb_conn->connection->event.ctx;
+ private->transport->event.ctx = event_context_merge(tcon->smb_conn->connection->event.ctx,
+ private->transport->event.ctx);
return NT_STATUS_OK;
}