diff options
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index c45a4168f9..63bfc70b2a 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -468,11 +468,9 @@ static void ldapsrv_accept_priv(struct stream_connection *c) struct ldapsrv_service *ldapsrv_service = talloc_get_type_abort( c->private_data, struct ldapsrv_service); struct auth_session_info *session_info; - NTSTATUS status; - status = auth_system_session_info( - c, ldapsrv_service->task->lp_ctx, &session_info); - if (!NT_STATUS_IS_OK(status)) { + session_info = system_session(ldapsrv_service->task->lp_ctx); + if (!session_info) { stream_terminate_connection(c, "failed to setup system " "session info"); return; |