s4-kdc/db_glue: bad idea to free parent mem_ctx when sub function got a failure.
authorGünther Deschner <gd@samba.org>
Tue, 10 Feb 2015 13:38:22 +0000 (14:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 20 Mar 2015 22:25:54 +0000 (23:25 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/db-glue.c

index e0f302aaa12e433ed6b0db996e1f50e6316fac72..7471aa2c2a7f5ea1aa32be643c24f9b7b22acaf1 100644 (file)
@@ -1609,7 +1609,6 @@ static krb5_error_code samba_kdc_lookup_server(krb5_context context,
                                              krb5_principal_get_comp_string(context, principal, 0),
                                              &enterprise_prinicpal);
                        if (ret) {
-                               talloc_free(mem_ctx);
                                return ret;
                        }
                        principal = enterprise_prinicpal;