chiark / gitweb /
changelog: document changes since 0.6.0
[secnet.git] / polypath.c
index e3c31e625212242a8a9441bd8b5068e5d3ae8d8d..64284a30fa17f29225f4a5273b91853db03f5d1a 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <adns.h>
 #include <ctype.h>
+#include <limits.h>
 
 #ifdef CONFIG_IPV6
 
@@ -516,7 +517,7 @@ static void polypath_sendmsg_interf(struct polypath *st,
                      "%s has no suitable address to transmit %s",
                      interf->name, af_name(af));
 
-    *allreasonable *= reasonable;
+    *allreasonable &= reasonable;
 }
 
 static bool_t polypath_sendmsg(void *commst, struct buffer_if *buf,