From: Howard Chu Date: Mon, 30 Nov 2009 21:47:38 +0000 (+0000) Subject: ITS#6405 in ldap_pvt_gettime, also check for microsecs going backward X-Git-Tag: ACLCHECK_0~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=127e50401504fad8cdb1417af6c39898d542b03f;p=openldap ITS#6405 in ldap_pvt_gettime, also check for microsecs going backward --- 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;