summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-10 20:39:20 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-10 23:10:26 +0200
commitd320aa1212ba926f81d37ee0690381f1f287f30d (patch)
treec79a8f877f3c9ccaaaf8cdf6a2d20a3a2c9b999f /source4
parent54ca77183b63946025c7953cdb9fb558b6b91b1d (diff)
downloadsamba-d320aa1212ba926f81d37ee0690381f1f287f30d.tar.gz
samba-d320aa1212ba926f81d37ee0690381f1f287f30d.tar.bz2
samba-d320aa1212ba926f81d37ee0690381f1f287f30d.zip
s4/ldap: use time_mono for reconnect timeout
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/ldap/ldap_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index b000b20f1e..865ff6d557 100644
--- a/source4/libcli/ldap/ldap_client.c
+++ b/source4/libcli/ldap/ldap_client.c
@@ -499,7 +499,7 @@ _PUBLIC_ void ldap_set_reconn_params(struct ldap_connection *conn, int max_retri
if (conn) {
conn->reconnect.max_retries = max_retries;
conn->reconnect.retries = 0;
- conn->reconnect.previous = time(NULL);
+ conn->reconnect.previous = time_mono(NULL);
}
}
@@ -507,7 +507,7 @@ _PUBLIC_ void ldap_set_reconn_params(struct ldap_connection *conn, int max_retri
static void ldap_reconnect(struct ldap_connection *conn)
{
NTSTATUS status;
- time_t now = time(NULL);
+ time_t now = time_mono(NULL);
/* do we have set up reconnect ? */
if (conn->reconnect.max_retries == 0) return;