summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/notify.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-13 17:17:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:08 -0500
commit09b9d831c285d04d0159d2ca2f0a82be214bf701 (patch)
treecb24cf850dad6ea01f2388275e28e47e73155be2 /source4/libcli/smb2/notify.c
parenta6a8065812038a759b5521237763764d96843fa2 (diff)
downloadsamba-09b9d831c285d04d0159d2ca2f0a82be214bf701.tar.gz
samba-09b9d831c285d04d0159d2ca2f0a82be214bf701.tar.bz2
samba-09b9d831c285d04d0159d2ca2f0a82be214bf701.zip
r17019: don't timeout on notifies
metze (This used to be commit 8d4fd35b10b176d31f986bbca5848091dffcd657)
Diffstat (limited to 'source4/libcli/smb2/notify.c')
-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;
}