summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/smb2/notify.c b/source4/libcli/smb2/notify.c
index 43792267f2..800f9ae9d5 100644
--- a/source4/libcli/smb2/notify.c
+++ b/source4/libcli/smb2/notify.c
@@ -31,6 +31,7 @@
struct smb2_request *smb2_notify_send(struct smb2_tree *tree, struct smb2_notify *io)
{
struct smb2_request *req;
+ uint32_t old_timeout;
req = smb2_request_init_tree(tree, SMB2_OP_NOTIFY, 0x20, False, 0);
if (req == NULL) return NULL;
@@ -43,7 +44,10 @@ struct smb2_request *smb2_notify_send(struct smb2_tree *tree, struct smb2_notify
SIVAL(req->out.body, 0x18, io->in.completion_filter);
SIVAL(req->out.body, 0x1C, io->in.unknown);
+ old_timeout = req->transport->options.timeout;
+ req->transport->options.timeout = 0;
smb2_transport_send(req);
+ req->transport->options.timeout = old_timeout;
return req;
}