Fixes ret value for output fallback iface in tun-bridge.c
This commit is contained in:
parent
561e70b18e
commit
76e293c289
@ -228,7 +228,7 @@ tun_output(uint8_t *data, int len)
|
||||
/* fprintf(stderr, "*** Writing to tun...%d\n", len); */
|
||||
if(write(tunfd, data, len) != len) {
|
||||
err(1, "serial_to_tun: write");
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user