tapdev6.c: do not ignore return value of system()

This commit is contained in:
Simon Duquennoy 2015-10-01 12:00:25 +02:00
parent 2c91ab6fad
commit 0340567af8

View File

@ -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);
/* */