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);
}
|
|