From 5b016dbab852cd443c8f9049acb94a113de227e1 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 7 Sep 2010 02:15:09 +0200 Subject: s3/libads: use monotonic clock for ldap connection timeouts --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libads/ldap.c') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 77ab51ee26..970f20a8d9 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -596,7 +596,7 @@ ADS_STATUS ads_connect(ADS_STRUCT *ads) char addr[INET6_ADDRSTRLEN]; ZERO_STRUCT(ads->ldap); - ads->ldap.last_attempt = time(NULL); + ads->ldap.last_attempt = time_mono(NULL); ads->ldap.wrap_type = ADS_SASLWRAP_TYPE_PLAIN; /* try with a user specified server */ -- cgit