summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-14 20:19:16 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-03-14 20:19:16 +0000
commita637b192ecac93ffee7fb680a3f386c1d2c0e263 (patch)
tree082c1eaf46f4e3859164d905de34e175ce5bd4f5 /common
parent22ed757ad134a426ab191dc5302cc41b9acc5682 (diff)
fix a problem in the timeout paramater that was being passed to select() and could contain too many µsec (fixes Solaris runtime issue)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1393 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'common')
-rw-r--r--common/tio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tio.c b/common/tio.c
index edc37d7..6f9bfc3 100644
--- a/common/tio.c
+++ b/common/tio.c
@@ -117,7 +117,7 @@ static inline int tio_tv_remaining(struct timeval *tv, const struct timeval *dea
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
{