tapdev: Fix using an uninitialized buffer

This commit is contained in:
François Revol 2013-04-16 20:06:01 +02:00
parent 424a7b2c8e
commit 7967779e6c

View file

@ -111,7 +111,7 @@ tapdev_init(void)
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
perror(buf);
perror("ioctl(TUNSETIFF)");
exit(1);
}
}