OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_event.c versions 1.57 and 1.58
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_event.c 1.57 -> 1.58

--- pth_event.c  2002/01/27 11:03:40     1.57
+++ pth_event.c  2002/01/27 13:15:28     1.58
@@ -114,6 +114,8 @@
     if (spec & PTH_EVENT_FD) {
         /* filedescriptor event */
         int fd = va_arg(ap, int);
+        if (!pth_util_fd_valid(fd))
+            return_errno(NULL, EBADF);
         ev->ev_type = PTH_EVENT_FD;
         ev->ev_goal = (int)(spec & (PTH_UNTIL_FD_READABLE|\
                                     PTH_UNTIL_FD_WRITEABLE|\

CVSTrac 2.0.1