--- libaitio/src/bpf.c 2013/06/24 14:45:37 1.1.2.4 +++ libaitio/src/bpf.c 2013/06/24 14:48:04 1.1.2.5 @@ -143,8 +143,9 @@ io_etherOpen(const char *csIface, int flags, int whdr, LOGERR; close(eth); return -1; - } - if (!(*zcbuf = allocZCbuf(MIN(n, *buflen)))) { + } else + *buflen = MIN(n, *buflen); + if (!(*zcbuf = allocZCbuf(*buflen))) { close(eth); return -1; }