chiark / gitweb /
udp, polypath: Log destination address in `some success' messages
[secnet.git] / polypath.c
index af52473a8b840bc1939d3b8e1aaa87c2f97b7716..abbda21c4afcaf5d2bdcade49798fd75f345d196 100644 (file)
@@ -440,7 +440,7 @@ static bool_t polypath_sendmsg(void *commst, struct buffer_if *buf,
            int r=sendto(us->fd,buf->start,buf->size,
                         0,&dest->ia.sa,iaddr_socklen(&dest->ia));
            udp_sock_experienced(0,&st->uc,&interf->socks,us,
-                                1,af, r,errno);
+                                &dest->ia,af, r,errno);
            if (r>=0) {
                reasonable=True;
                break;