1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

netlogon_creds_cli: use dbwrap_purge instead of dbwrap_delete where appropriate

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Michael Adam 2016-02-25 16:15:04 +01:00
parent 8f158bab9f
commit bebd35f439

View File

@ -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,
status = dbwrap_purge(state->context->db.ctx,
state->context->db.key_data);
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
status = NT_STATUS_OK;
}
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,
status = dbwrap_purge(state->context->db.ctx,
state->context->db.key_data);
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
status = NT_STATUS_OK;
}
if (tevent_req_nterror(req, status)) {
return;
}