summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/clioplock.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-08-03 06:52:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:45 -0500
commit53781e9d37b9adb1cf2d5be2a6ae6c1f5ace26c9 (patch)
tree5e5f8946adf47c56ad3bddf74a118926f78765b7 /source4/libcli/raw/clioplock.c
parent44194cc66378682a39f3694977101bf8f2a7a6f6 (diff)
downloadsamba-53781e9d37b9adb1cf2d5be2a6ae6c1f5ace26c9.tar.gz
samba-53781e9d37b9adb1cf2d5be2a6ae6c1f5ace26c9.tar.bz2
samba-53781e9d37b9adb1cf2d5be2a6ae6c1f5ace26c9.zip
r1633: fixed a couple of async oplock handling errors
(This used to be commit d7e2f39b90122088e94d4a8e8c7ffa7c91d7d664)
Diffstat (limited to 'source4/libcli/raw/clioplock.c')
-rw-r--r--source4/libcli/raw/clioplock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/raw/clioplock.c b/source4/libcli/raw/clioplock.c
index 0cd6adb41f..29e44fc940 100644
--- a/source4/libcli/raw/clioplock.c
+++ b/source4/libcli/raw/clioplock.c
@@ -39,8 +39,11 @@ BOOL cli_oplock_ack(struct cli_tree *tree, uint16_t fnum, uint16_t ack_level)
SSVAL(req->out.vwv,VWV(6),0);
SSVAL(req->out.vwv,VWV(7),0);
+ /* this request does not expect a reply, so tell the signing
+ subsystem not to allocate an id for a reply */
+ req->one_way_request = 1;
+
ret = cli_request_send(req);
- cli_request_destroy(req);
return ret;
}