summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-02-25 16:15:04 +0100
committerKarolin Seeger <kseeger@samba.org>2016-03-14 10:02:13 +0100
commit5782344a5775356b37cafe8b6631786fc6ca6364 (patch)
treea44cc8b24c58b64706146ca08d3a840c3edce10e /libcli
parent5b439f51f0177873167de8a900eafa34f5a14e9e (diff)
downloadsamba-5782344a5775356b37cafe8b6631786fc6ca6364.tar.gz
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> (cherry picked from commit bebd35f439229b9363dfc2f4ae5744103ba80740) BUG: https://bugzilla.samba.org/show_bug.cgi?id=11779
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/netlogon_creds_cli.c14
1 files changed, 4 insertions, 10 deletions
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;
}