diff options
Diffstat (limited to 'contrib/sendmail/libsm/local.h')
-rw-r--r-- | contrib/sendmail/libsm/local.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/sendmail/libsm/local.h b/contrib/sendmail/libsm/local.h index 9433213..95b5ffe 100644 --- a/contrib/sendmail/libsm/local.h +++ b/contrib/sendmail/libsm/local.h @@ -11,7 +11,7 @@ * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * - * $Id: local.h,v 1.51 2002/02/20 02:40:24 ca Exp $ + * $Id: local.h,v 1.51.2.1 2002/09/09 21:38:08 gshapiro Exp $ */ /* @@ -279,6 +279,11 @@ extern const char SmFileMagic[]; sm_io_to.tv_sec = (to) / 1000; \ sm_io_to.tv_usec = ((to) - (sm_io_to.tv_sec * 1000)) * 10; \ } \ + if (FD_SETSIZE > 0 && (fd) >= FD_SETSIZE) \ + { \ + errno = EINVAL; \ + return SM_IO_EOF; \ + } \ FD_ZERO(&sm_io_to_mask); \ FD_SET((fd), &sm_io_to_mask); \ FD_ZERO(&sm_io_x_mask); \ |