lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Mon Mar 14 21:19:16 2011
New Revision: 1393
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1393

Log:
fix a problem in the timeout paramater that was being passed to selec() and 
could be too many usec

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

Modified: nss-pam-ldapd/common/tio.c
==============================================================================
--- nss-pam-ldapd/common/tio.c  Sun Mar 13 16:25:08 2011        (r1392)
+++ nss-pam-ldapd/common/tio.c  Mon Mar 14 21:19:16 2011        (r1393)
@@ -117,7 +117,7 @@
     return -1;
   /* update tv */
   tv->tv_sec=deadline->tv_sec-tv->tv_sec;
-  if (tv->tv_usec<deadline->tv_usec)
+  if (tv->tv_usec<=deadline->tv_usec)
     tv->tv_usec=deadline->tv_usec-tv->tv_usec;
   else
   {
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits