--- libaitio/src/bpf.c 2013/06/25 08:55:02 1.1.2.9 +++ libaitio/src/bpf.c 2013/06/25 09:29:34 1.1.2.10 @@ -163,6 +163,7 @@ io_etherOpen(const char *csIface, int flags, int whdr, io_etherClose(eth, zcbuf); return -1; } + memset(&ifr, 0, sizeof ifr); strlcpy(ifr.ifr_name, szStr, sizeof ifr.ifr_name); if (ioctl(eth, BIOCSETIF, &ifr) == -1) { LOGERR;