* stream.c: Dont allocate streams with 0 sized data buffers
* if.h: Add more 'non-generic' IFF_ flags.
* if.c: IFF_NOXMIT/IFF_VIRTUAL interfaces are 'loopback like'
+ * stream.c: Dont allocate streams with 0 sized data buffers
2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
{
struct stream *s;
+ assert (size > 0);
+
+ if (size == 0)
+ return NULL;
+
s = XCALLOC (MTYPE_STREAM, sizeof (struct stream));
s->data = XCALLOC (MTYPE_STREAM_DATA, size);