diff options
Diffstat (limited to 'gnu/usr.sbin/sendmail/libsm/local.h')
-rw-r--r-- | gnu/usr.sbin/sendmail/libsm/local.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.sbin/sendmail/libsm/local.h b/gnu/usr.sbin/sendmail/libsm/local.h index 669c4ea838b..93b21c27ade 100644 --- a/gnu/usr.sbin/sendmail/libsm/local.h +++ b/gnu/usr.sbin/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. * - * $Sendmail: local.h,v 1.51 2002/02/20 02:40:24 ca Exp $ + * $Sendmail: 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); \ |