Various C files: Ignore write errors of UDP and IP datagrams.
[tripe] / proxy / tripe-mitm.c
index 97bba83..3686b7b 100644 (file)
@@ -1,7 +1,5 @@
 /* -*-c-*-
  *
- * $Id$
- *
  * An evil proxy for TrIPE
  *
  * (c) 2001 Straylight/Edgeware
@@ -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)