chiark / gitweb /
Various C files: Ignore write errors of UDP and IP datagrams.
[tripe] / proxy / tripe-mitm.c
index 97bba83be3a4535d4bf7c05a1024252d506b0c86..3686b7ba4e4691ee73fabb3a8f22b97a3a16b23d 100644 (file)
@@ -1,6 +1,4 @@
 /* -*-c-*-
- *
- * $Id$
  *
  * An evil proxy for TrIPE
  *
@@ -408,8 +406,10 @@ static void adddelay(filter *f, unsigned ac, char **av)
 
 static void dosend(filter *f, const octet *buf, size_t sz)
 {
+  int hunoz;
+
   printf("send to `%s'\n", f->p_to->name);
-  write(f->p_to->sf.fd, buf, sz);
+  hunoz = write(f->p_to->sf.fd, buf, sz);
 }
 
 static void addsend(filter *f, unsigned ac, char **av)