]> git.meshlink.io Git - meshlink/commitdiff
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 43c8ce20204db886b4b7ab2ece7afdd68c9f4b4c..cd8d98ac0b94cb602a738752f771cfa1d6102af2 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;