mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:lib: Allow open_socket_out without a timeout
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
09ea7248e0
commit
3a7480d612
@ -481,7 +481,8 @@ struct tevent_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
|
||||
|
||||
tevent_req_set_cleanup_fn(req, open_socket_out_cleanup);
|
||||
|
||||
if (!tevent_req_set_endtime(
|
||||
if ((timeout != 0) &&
|
||||
!tevent_req_set_endtime(
|
||||
req, ev, timeval_current_ofs_msec(timeout))) {
|
||||
tevent_req_oom(req);
|
||||
return tevent_req_post(req, ev);
|
||||
|
Loading…
Reference in New Issue
Block a user