diff options
author | Isaac Boukris <iboukris@gmail.com> | 2020-07-14 22:38:06 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-12-08 09:21:24 +0000 |
commit | f7490ec9d94edfc9cdc79e70580b3b226a2022d5 (patch) | |
tree | c7f51214e8e45b1f8afc701496b3d22e09826428 /source3 | |
parent | 585c49f21f7db686f479ce02b2ae647a313f1184 (diff) | |
download | samba-f7490ec9d94edfc9cdc79e70580b3b226a2022d5.tar.gz |
s3-libads: Pass timeout to open_socket_out in ms
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13124
Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 16 10:41:40 UTC 2020 on sn-devel-184
(cherry picked from commit d67e9149a612044e247e7a4d78913ecf396c69fc)
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/libads/ldap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 10ab043f721..ee4628a09a2 100755 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -96,9 +96,11 @@ static void gotalarm_sig(int signum) { int fd = -1; NTSTATUS status = NT_STATUS_UNSUCCESSFUL; + unsigned timeout_ms = 1000 * to; - status = open_socket_out(ss, port, to, &fd); + status = open_socket_out(ss, port, timeout_ms, &fd); if (!NT_STATUS_IS_OK(status)) { + DEBUG(3, ("open_socket_out: failed to open socket\n")); return NULL; } |