summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/ldap_server/ldap_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index 92adc8a890..5cc0748c29 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -365,7 +365,7 @@ static void ldapsrv_accept(struct stream_connection *c)
conn->tls = tls_init_server(ldapsrv_service->tls_params, c->socket,
c->event.fde, NULL, port != 389);
if (!conn->tls) {
- ldapsrv_terminate_connection(c, "ldapsrv_accept: tls_init_server() failed");
+ ldapsrv_terminate_connection(conn, "ldapsrv_accept: tls_init_server() failed");
return;
}