From: Guus Sliepen Date: Mon, 25 Jun 2012 17:03:54 +0000 (+0200) Subject: Fix crash when using Broadcast = direct. X-Git-Tag: import-tinc-1.1~369^2~1 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=236b0ba4ebba01e22e382e79897100338a039bbb;p=meshlink Fix crash when using Broadcast = direct. --- diff --git a/src/net_packet.c b/src/net_packet.c index 43c8ce20..cd8d98ac 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -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;