diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-04-09 17:18:53 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-04-11 13:36:04 +1000 |
commit | 2c193fe91af60f29ed4d560496842073097469bb (patch) | |
tree | 99b9a777475de9d2d8bb940a4d21e931feeeb38d /source4/rpc_server | |
parent | 18078ec4450a7ee37b613020886ec6bead7a6ead (diff) | |
download | samba-2c193fe91af60f29ed4d560496842073097469bb.tar.gz samba-2c193fe91af60f29ed4d560496842073097469bb.tar.bz2 samba-2c193fe91af60f29ed4d560496842073097469bb.zip |
s4:auth Remove event context from anonymous_session()
This should always return a simple structure with no need to consult a
DB, so remove the event context, and simplfy to call helper functions
that don't look at privilages.
Andrew Bartlett
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/common/server_info.c | 2 | ||||
-rw-r--r-- | source4/rpc_server/service_rpc.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/rpc_server/common/server_info.c b/source4/rpc_server/common/server_info.c index 2906b89ef1..d6e11edd00 100644 --- a/source4/rpc_server/common/server_info.c +++ b/source4/rpc_server/common/server_info.c @@ -95,7 +95,7 @@ uint32_t dcesrv_common_get_server_type(TALLOC_CTX *mem_ctx, struct tevent_contex break; } /* open main ldb */ - samctx = samdb_connect(tmp_ctx, event_ctx, dce_ctx->lp_ctx, anonymous_session(tmp_ctx, event_ctx, dce_ctx->lp_ctx)); + samctx = samdb_connect(tmp_ctx, event_ctx, dce_ctx->lp_ctx, anonymous_session(tmp_ctx, dce_ctx->lp_ctx)); if (samctx == NULL) { DEBUG(2,("Unable to open samdb in determining server announce flags\n")); } else { diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c index ac760fd9a6..6485d9ef97 100644 --- a/source4/rpc_server/service_rpc.c +++ b/source4/rpc_server/service_rpc.c @@ -342,7 +342,6 @@ static void dcesrv_sock_accept(struct stream_connection *srv_conn) if (!srv_conn->session_info) { status = auth_anonymous_session_info(srv_conn, - srv_conn->event.ctx, lp_ctx, &srv_conn->session_info); if (!NT_STATUS_IS_OK(status)) { |