From 127e50401504fad8cdb1417af6c39898d542b03f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 30 Nov 2009 21:47:38 +0000 Subject: [PATCH] ITS#6405 in ldap_pvt_gettime, also check for microsecs going backward --- libraries/libldap/util-int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 4525966503..72fb65db25 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -289,7 +289,7 @@ ldap_pvt_gettime( struct lutil_tm *ltm ) t = tv.tv_sec; if ( tv.tv_sec < prevTv.tv_sec - || ( tv.tv_sec == prevTv.tv_sec && tv.tv_usec == prevTv.tv_usec )) { + || ( tv.tv_sec == prevTv.tv_sec && tv.tv_usec <= prevTv.tv_usec )) { subs++; } else { subs = 0; -- 2.39.5