X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=d99bd2875b39348cdf5a9b4f113360e5772defef;hp=ae6fbed8bb1178deeba8434546d27d852b2d0b17;hb=d47d5932a3bbc4940aa6453ebfe617ef330783c8;hpb=9c2f805255fa36b05e8fe9391f639581d938b653 diff --git a/src/net.c b/src/net.c index ae6fbed8..d99bd287 100644 --- a/src/net.c +++ b/src/net.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net.c,v 1.35.4.45 2000/10/24 15:46:16 guus Exp $ + $Id: net.c,v 1.35.4.46 2000/10/28 16:41:38 guus Exp $ */ #include "config.h" @@ -274,8 +274,9 @@ cp int send_packet(ip_t to, vpn_packet_t *packet) { conn_list_t *cl; + subnet_t *subnet; cp - if((cl = lookup_conn_list_ipv4(to)) == NULL) + if((subnet = lookup_subnet_ipv4(to)) == NULL) { if(debug_lvl >= DEBUG_TRAFFIC) { @@ -285,6 +286,8 @@ cp return -1; } + + cl = subnet->owner; /* If we ourselves have indirectdata flag set, we should send only to our uplink! */