1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

r14673: Don't double-free conn, it is below 'c' free'ed by

stream_terminate_connection()

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2006-03-23 12:00:00 +00:00 committed by Gerald (Jerry) Carter
parent ba3bf34a85
commit a6c7979860

@ -424,7 +424,6 @@ static void ldapsrv_accept(struct stream_connection *c)
= cli_credentials_init(conn);
if (!server_credentials) {
stream_terminate_connection(c, "Failed to init server credentials\n");
talloc_free(conn);
return;
}
@ -432,7 +431,6 @@ static void ldapsrv_accept(struct stream_connection *c)
status = cli_credentials_set_machine_account(server_credentials);
if (!NT_STATUS_IS_OK(status)) {
stream_terminate_connection(c, talloc_asprintf(conn, "Failed to obtain server credentials, perhaps a standalone server?: %s\n", nt_errstr(status)));
talloc_free(conn);
return;
}
conn->server_credentials = server_credentials;