chiark / gitweb /
server/tests.at: Work around strace's attempt to overwrite core files.
[tripe] / server / tun-linux.c
index 2794ca8ccb11d063137ccbc7fa4d409c7350f8a4..33451746fd9ff9adbff726f5d06ca0d299c9764e 100644 (file)
@@ -125,11 +125,13 @@ static tunnel *t_create(peer *p, int fd, char **ifn)
 
 static void t_inject(tunnel *t, buf *b)
 {
+  int hunoz;
+
   IF_TRACING(T_TUNNEL, {
     trace(T_TUNNEL, "tun-linux: inject decrypted packet");
     trace_block(T_PACKET, "tunnel: packet contents", BBASE(b), BLEN(b));
   })
-  write(t->f.fd, BBASE(b), BLEN(b));
+  hunoz = write(t->f.fd, BBASE(b), BLEN(b));
 }
 
 /* --- @t_destroy@ --- *