tapdev6.c: do not ignore return value of system()
This commit is contained in:
parent
2c91ab6fad
commit
0340567af8
|
@ -331,7 +331,10 @@ tapdev_init(void)
|
|||
*/
|
||||
/* freebsd */
|
||||
snprintf(buf, sizeof(buf), "ifconfig tap0 up");
|
||||
system(buf);
|
||||
if(system(buf) == -1) {
|
||||
perror("tapdev: system: ifconfig");
|
||||
return;
|
||||
}
|
||||
printf("%s\n", buf);
|
||||
|
||||
/* */
|
||||
|
|
Loading…
Reference in a new issue