diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-03-23 12:00:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:07 -0500 |
commit | 13f45733a3b3c4985864ad19cae9735aa48feec8 (patch) | |
tree | d9e4bd36d6961174ef055c00460314065d3f3373 | |
parent | aba2ae4784993d1f40ef9295e0f3f11934d9faec (diff) | |
download | samba-13f45733a3b3c4985864ad19cae9735aa48feec8.tar.gz samba-13f45733a3b3c4985864ad19cae9735aa48feec8.tar.bz2 samba-13f45733a3b3c4985864ad19cae9735aa48feec8.zip |
r14673: Don't double-free conn, it is below 'c' free'ed by
stream_terminate_connection()
Andrew Bartlett
(This used to be commit a6c797986053ecf6bbce54028d7ea4106635c558)
-rw-r--r-- | source4/ldap_server/ldap_server.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index ee203abc79..9ce371b99b 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -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; |