1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s4-kdc/db_glue: bad idea to free parent mem_ctx when sub function got a failure.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Günther Deschner 2015-02-10 14:38:22 +01:00 committed by Stefan Metzmacher
parent 6d6712fdde
commit 13cd1d5c58

View 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;