summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 9b6d597606..a1a3117d88 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -936,7 +936,7 @@ int smbldap_search(struct smbldap_state *ldap_state,
ZERO_STRUCT(tval);
GetTimeOfDay(&tval);
- tdiff = usec_time_diff(&tval, &ldap_state->last_rebind.tv_sec);
+ tdiff = usec_time_diff(&tval, &ldap_state->last_rebind);
tdiff /= 1000; /* Convert to milliseconds. */
sleep_time = lp_ldap_replication_sleep()-(int)tdiff;