summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2022-08-28 12:38:24 +0200
committerJeremy Allison <jra@samba.org>2022-09-20 00:34:35 +0000
commit37c9600ff1babbb3e1fc2db3d29dfb12ca0c707a (patch)
tree61b4c94803b7f26028d235f17df3529f6fab805b /libcli
parent01c629a409860e5cccfc64e78fa63c90303a4b7a (diff)
downloadsamba-37c9600ff1babbb3e1fc2db3d29dfb12ca0c707a.tar.gz
s3:g_lock: add callback function to g_lock_lock_send()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/netlogon_creds_cli.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c
index 716a565128d..fec192bdae2 100644
--- a/libcli/auth/netlogon_creds_cli.c
+++ b/libcli/auth/netlogon_creds_cli.c
@@ -813,7 +813,8 @@ struct tevent_req *netlogon_creds_cli_lock_send(TALLOC_CTX *mem_ctx,
subreq = g_lock_lock_send(state, ev,
context->db.g_ctx,
string_term_tdb_data(context->db.key_name),
- G_LOCK_WRITE);
+ G_LOCK_WRITE,
+ NULL, NULL);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
@@ -1027,7 +1028,8 @@ struct tevent_req *netlogon_creds_cli_lck_send(
subreq = g_lock_lock_send(state, ev,
context->db.g_ctx,
string_term_tdb_data(context->db.key_name),
- gtype);
+ gtype,
+ NULL, NULL);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}