From bebd35f439229b9363dfc2f4ae5744103ba80740 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 25 Feb 2016 16:15:04 +0100 Subject: netlogon_creds_cli: use dbwrap_purge instead of dbwrap_delete where appropriate Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- libcli/auth/netlogon_creds_cli.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'libcli') diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 7c867cff08b..38b1351f591 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -1031,11 +1031,8 @@ struct tevent_req *netlogon_creds_cli_auth_send(TALLOC_CTX *mem_ctx, return req; } - status = dbwrap_delete(state->context->db.ctx, - state->context->db.key_data); - if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { - status = NT_STATUS_OK; - } + status = dbwrap_purge(state->context->db.ctx, + state->context->db.key_data); if (tevent_req_nterror(req, status)) { return tevent_req_post(req, ev); } @@ -1065,11 +1062,8 @@ static void netlogon_creds_cli_auth_locked(struct tevent_req *subreq) } state->locked_state->is_glocked = true; - status = dbwrap_delete(state->context->db.ctx, - state->context->db.key_data); - if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { - status = NT_STATUS_OK; - } + status = dbwrap_purge(state->context->db.ctx, + state->context->db.key_data); if (tevent_req_nterror(req, status)) { return; } -- cgit v1.2.1