diff options
author | Michael Adam <obnox@samba.org> | 2016-02-25 16:15:04 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-03-01 21:50:24 +0100 |
commit | bebd35f439229b9363dfc2f4ae5744103ba80740 (patch) | |
tree | 716e4d1347460379528956547ce39cc7d840bedb /libcli | |
parent | 8f158bab9f8dbdbdb460258a08a15d0d6c41cbac (diff) | |
download | samba-bebd35f439229b9363dfc2f4ae5744103ba80740.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>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 14 |
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; } |