--- libaitio/src/bpf.c 2013/10/18 14:21:01 1.3.8.1 +++ libaitio/src/bpf.c 2013/10/21 15:39:15 1.3.8.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: bpf.c,v 1.3.8.1 2013/10/18 14:21:01 misho Exp $ +* $Id: bpf.c,v 1.3.8.2 2013/10/21 15:39:15 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -337,8 +337,10 @@ io_etherRecv(int eth, void * __restrict buf, size_t bu if (!zcbuf) { rlen = read(eth, buf, buflen); - if (rlen == -1) + if (rlen == -1) { LOGERR; + return -1; + } } else { #ifdef __FreeBSD__ rlen = nextZCbuf(eth, (struct bpf_zbuf*) zcbuf, buf, buflen);