[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] openvpn-2.0_beta9: Crash when using ifconfig


  • Subject: Re: [Openvpn-users] openvpn-2.0_beta9: Crash when using ifconfig
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Sun, 1 Aug 2004 13:46:28 +0200 (CEST)

On Sun, 1 Aug 2004, Mathias Sundman wrote:

On Sun, 1 Aug 2004, Mathias Sundman wrote:

I just upgraded from 2.0_beta7 to beta9 and encountered a new problem...

My connections to other 2.0-betaX based servers in "udp-server" mode, and pulling parameters works just fine.

But my connection to an old server running OpenVPN 1.5 and static keys fails.

Here's the output when running openvpn.exe through gdb:

Program received signal SIGSEGV, Segmentation fault.
0x004302f2 in test_routes (rl=0x0, tt=0xb48658) at route.c:919
919  if (rl->redirect_default_gateway && rl->spec.remote_endpoint_defined)

Not really sure if it was the right thing todo, but here's a patch that solved the crash atleast ;-)


--- route-orig.c/route.c        Fri Jul 30 22:08:24 2004
+++ route.c     Sun Aug  1 13:35:30 2004
@@ -912,14 +912,15 @@
       if (rl)
        {
          int i;
          for (i = 0; i < rl->n; ++i)
            test_route_helper (&ret, &count, &good, &ambig, adapters, rl->routes[i].gateway);
+
+          if (rl->redirect_default_gateway && rl->spec.remote_endpoint_defined)
+            test_route_helper (&ret, &count, &good, &ambig, adapters, rl->spec.remote_endpoint);
        }

-      if (rl->redirect_default_gateway && rl->spec.remote_endpoint_defined)
-       test_route_helper (&ret, &count, &good, &ambig, adapters, rl->spec.remote_endpoint);
     }

   msg (D_ROUTE, "DEBUG: test_routes: %d/%d succeeded len=%d ret=%d a=%d u/d=%s",  // JYFIXME: change to D_ROUTE_DEBUG
        good,
        count,


-- _____________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign NILINGS AB X NO HTML/RTF in e-mail Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users