lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1421 - nss-pam-ldapd/common

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1421 - nss-pam-ldapd/common



Author: arthur
Date: Thu Mar 31 22:22:22 2011
New Revision: 1421
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1421

Log:
tv_usec in struct timeval must be lower than 1000000 (patch by SATOH Fumiyasu)

Modified:
   nss-pam-ldapd/common/tio.c

Modified: nss-pam-ldapd/common/tio.c
==============================================================================
--- nss-pam-ldapd/common/tio.c  Thu Mar 31 22:16:44 2011        (r1420)
+++ nss-pam-ldapd/common/tio.c  Thu Mar 31 22:22:22 2011        (r1421)
@@ -78,7 +78,7 @@
 {
   /* BUG: we hope that this does not overflow */
   tv1->tv_usec+=tv2->tv_usec;
-  if (tv1->tv_usec>1000000)
+  if (tv1->tv_usec>=1000000)
   {
     tv1->tv_usec-=1000000;
     tv1->tv_sec+=1;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits