summaryrefslogtreecommitdiff
path: root/libcli/smb/smb2cli_notify.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-21libcli: Make smb2cli_notify_send cancellableVolker Lendecke1-6/+25
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-05-16libcli: Fix coverity warning in smb2cli_notify_send()Andreas Schneider1-1/+4
result_independent_of_operands: "(uint16_t)(recursive ? 1 : 0) >> 8" is 0 regardless of the values of its operands. This occurs as the operand of assignment. Found by Coverity. Pair-Programmed-With: Ralph Boehme <slow@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-04-05libsmb: Handle long-running smb2cli_notifyVolker Lendecke1-9/+45
This likely runs into a timeout. Properly cancel the smb2 request, allowing the higher-level caller to re-issue this request on an existing handle. I did not see a proper way to achieve this with tevent_req_set_endtime or something like that. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2017-07-25libsmb: Add smb2cli_notify()Volker Lendecke1-0/+178
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>