[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: "James Yonan" <jim@xxxxxxxxx>
  • Date: Mon, 2 Aug 2004 13:10:39 -0000

Mathias Sundman <mathias@xxxxxxxxxx> said:

> 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,

Right, thanks for noticing that.  Should be fixed in beta10.

James


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