]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-libads: Pass timeout to open_socket_out in ms
authorIsaac Boukris <iboukris@gmail.com>
Tue, 14 Jul 2020 20:38:06 +0000 (22:38 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 Jul 2020 10:41:40 +0000 (10:41 +0000)
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

source3/libads/ldap.c

index 1ffe96d32c933872343686251fc2635cbd7c68b8..d431156912fbd28006f2b8b7984f9439a187cbd2 100755 (executable)
@@ -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;
                }