mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-01 18:33:12 +00:00
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));
|
memset(&ifr, 0, sizeof(ifr));
|
||||||
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
||||||
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
|
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
|
||||||
perror(buf);
|
perror("ioctl(TUNSETIFF)");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user