diff options
author | Björn Jacke <bj@sernet.de> | 2010-09-10 20:39:20 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-09-10 23:10:26 +0200 |
commit | d320aa1212ba926f81d37ee0690381f1f287f30d (patch) | |
tree | c79a8f877f3c9ccaaaf8cdf6a2d20a3a2c9b999f /source4/libcli | |
parent | 54ca77183b63946025c7953cdb9fb558b6b91b1d (diff) | |
download | samba-d320aa1212ba926f81d37ee0690381f1f287f30d.tar.gz samba-d320aa1212ba926f81d37ee0690381f1f287f30d.tar.bz2 samba-d320aa1212ba926f81d37ee0690381f1f287f30d.zip |
s4/ldap: use time_mono for reconnect timeout
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/ldap/ldap_client.c | 4 |
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; |