OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/sio_fd.c versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/sio_fd.c 1.5 -> 1.6

--- sio_fd.c     2002/11/05 16:05:25     1.5
+++ sio_fd.c     2002/11/05 16:18:46     1.6
@@ -94,6 +94,9 @@
     size_t n;
 
     n = buf->size;
+    if (n == 0)
+        return SIO_ERR_ARG;
+
     p = realloc(buf->mem, n);
     if (p != NULL)
         buf->mem = p;

CVSTrac 2.0.1