tapdev: Fix using an uninitialized buffer
This commit is contained in:
parent
424a7b2c8e
commit
7967779e6c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue