summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-12 13:54:10 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-12 14:35:43 +0100
commitbf8cce18c6dba9ed254a256ce3e8827e7f1e1827 (patch)
tree5845d373a43ed32e1c42330967bbc2181f2c0efc
parent16cfc7243b733e3dd55595b3c29b052aaf7328ce (diff)
downloadsamba-bf8cce18c6dba9ed254a256ce3e8827e7f1e1827.tar.gz
samba-bf8cce18c6dba9ed254a256ce3e8827e7f1e1827.tar.bz2
samba-bf8cce18c6dba9ed254a256ce3e8827e7f1e1827.zip
s3:smbd/process: avoid using server_event_context() for the forked echo handler
metze
-rw-r--r--source3/smbd/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index d037fae779..64dec5291c 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2885,7 +2885,7 @@ bool fork_echo_handler(struct smbd_server_connection *sconn)
set_blocking(listener_pipe[1], false);
status = reinit_after_fork(sconn->msg_ctx,
- server_event_context(),
+ sconn->ev_ctx,
procid_self(), false);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("reinit_after_fork failed: %s\n",
@@ -2905,10 +2905,10 @@ bool fork_echo_handler(struct smbd_server_connection *sconn)
* Without smb signing this is the same as the normal smbd
* listener. This needs to change once signing comes in.
*/
- sconn->smb1.echo_handler.trusted_fde = event_add_fd(server_event_context(),
+ sconn->smb1.echo_handler.trusted_fde = tevent_add_fd(sconn->ev_ctx,
sconn,
sconn->smb1.echo_handler.trusted_fd,
- EVENT_FD_READ,
+ TEVENT_FD_READ,
smbd_server_echo_handler,
sconn);
if (sconn->smb1.echo_handler.trusted_fde == NULL) {