Fix crash when using Broadcast = direct.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 Jun 2012 17:03:54 +0000 (19:03 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 Jun 2012 17:03:54 +0000 (19:03 +0200)
src/net_packet.c

index 43c8ce2..cd8d98a 100644 (file)
@@ -622,7 +622,7 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) {
                                n = node->data;
 
                                if(n->status.reachable && ((n->via == myself && n->nexthop == n) || n->via == n))
-                                       send_packet(c->node, packet);
+                                       send_packet(n, packet);
                        }
                        break;