OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_channel.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_channel.c 1.2 -> 1.3

--- l2_channel.c 2001/05/22 18:47:31     1.2
+++ l2_channel.c 2001/05/22 20:00:12     1.3
@@ -95,6 +95,10 @@
         ch = ch->below;
     if (ch == NULL)
         return L2_ERROR;
+    if (buf == NULL)
+        return L2_ERROR;
+    if (bufsize == 0)
+        return L2_OK;
     return ch->handler.write(&ch->context, ch->below, buf, bufsize);
 }
 

CVSTrac 2.0.1