From da3f41219d564c8166a680fcce83d88e2a0e160b Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 9 Jul 2015 18:01:34 +0200 Subject: [PATCH] s4-torture: use smb_krb5_free_error() in lsa forest krb5 tests. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Andreas Schneider --- source4/torture/rpc/lsa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index e708e90a4de..81d01bb1212 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -2974,8 +2974,8 @@ static krb5_error_code check_pw_with_krb5_send_and_recv_func(krb5_context contex hi.proto = KRB5_KRBHST_TCP; - free_KRB_ERROR(&ctx->error); - + smb_krb5_free_error(ctx->smb_krb5_context->krb5_context, + &ctx->error); ctx->counts.io++; k5ret = smb_krb5_send_and_recv_func_forced(context, ctx->server, @@ -3155,7 +3155,8 @@ static int check_pw_with_krb5_ctx_destructor(struct check_pw_with_krb5_ctx *ctx) free_EncTicketPart(&ctx->krbtgt_referral_enc_part); - free_KRB_ERROR(&ctx->error); + smb_krb5_free_error(ctx->smb_krb5_context->krb5_context, + &ctx->error); talloc_unlink(ctx, ctx->smb_krb5_context); ctx->smb_krb5_context = NULL; -- 2.34.1