summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2015-09-25 08:36:10 +0200
committerGert Doering <gert@greenie.muc.de>2015-09-25 09:41:50 +0200
commitc40f088e52132273f6d4e83d05fa64bbaedd860f (patch)
tree418524e3c6ff3e9913a6896104702fb529c30522
parent2e2a34181962b33d70c34c28dcb1e1977c2fd54e (diff)
downloadopenvpn-c40f088e52132273f6d4e83d05fa64bbaedd860f.zip
openvpn-c40f088e52132273f6d4e83d05fa64bbaedd860f.tar.gz
openvpn-c40f088e52132273f6d4e83d05fa64bbaedd860f.tar.xz
Repair test_local_addr() on WIN32
Intermediate result was stored in a "bool" variable, but the actual range of results is 0/1/2 - so "2" (TLA_LOCAL) never worked. Change to "int". Diagnosed by "dferbas" in trac #609 (thanks). Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <1443162970-38210-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10168
-rw-r--r--src/openvpn/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index c011f99..1b35396 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -3547,7 +3547,7 @@ test_local_addr (const in_addr_t addr, const struct route_gateway_info *rgi)
{
struct gc_arena gc = gc_new ();
const in_addr_t nonlocal_netmask = 0x80000000L; /* routes with netmask <= to this are considered non-local */
- bool ret = TLA_NONLOCAL;
+ int ret = TLA_NONLOCAL;
/* get full routing table */
const MIB_IPFORWARDTABLE *rt = get_windows_routing_table (&gc);