nss-pam-ldapd commit: r1926 - in nss-pam-ldapd-0.7.15+squeeze: . common
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1926 - in nss-pam-ldapd-0.7.15+squeeze: . common
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1926 - in nss-pam-ldapd-0.7.15+squeeze: . common
- Date: Mon, 18 Feb 2013 18:07:53 +0100 (CET)
Author: arthur
Date: Mon Feb 18 18:07:52 2013
New Revision: 1926
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1926&view=revision
Log:
check if the file descriptor can be stored in the select() file descriptor set
(r1781 from 0.8, r1782 from 0.7)
Modified:
nss-pam-ldapd-0.7.15+squeeze/ (props changed)
nss-pam-ldapd-0.7.15+squeeze/common/tio.c
Modified: nss-pam-ldapd-0.7.15+squeeze/common/tio.c
==============================================================================
--- nss-pam-ldapd-0.7.15+squeeze/common/tio.c Fri Jan 18 18:40:25 2013
(r1925)
+++ nss-pam-ldapd-0.7.15+squeeze/common/tio.c Mon Feb 18 18:07:52 2013
(r1926)
@@ -183,6 +183,11 @@
while (1)
{
/* prepare our filedescriptorset */
+ if (fp->fd>=FD_SETSIZE)
+ {
+ errno=EBADFD;
+ return -1;
+ }
FD_ZERO(&fdset);
FD_SET(fp->fd,&fdset);
/* figure out the time we need to wait */
@@ -390,6 +395,11 @@
fd_set fdset;
int rv;
/* prepare our filedescriptorset */
+ if (fp->fd>=FD_SETSIZE)
+ {
+ errno=EBADFD;
+ return -1;
+ }
FD_ZERO(&fdset);
FD_SET(fp->fd,&fdset);
/* set the timeout to 0 to poll */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1926 - in nss-pam-ldapd-0.7.15+squeeze: . common,
Commits of the nss-pam-ldapd project