Fixes ret value for output fallback iface in tun-bridge.c

This commit is contained in:
Víctor Ariño 2013-07-03 14:09:57 +02:00 committed by Valentin Sawadski
parent 561e70b18e
commit 76e293c289

View file

@ -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;
}