[Openswan dev] [Commits] [OPENSWAN.git] Changes to ref refs/heads/master
Thomas Geulig
geulig at nentec.de
Mon May 3 10:11:29 EDT 2010
On Fri, 30 Apr 2010 Paul Wouters wrote:
> On Fri, 30 Apr 2010, davidm at vault.xelerance.com wrote:
> > Fix assertion failure when removing routes
> >
> > In delete_states_by_connection:
> >
> > ASSERTION FAILED at .../programs/pluto/state.c:691: sr->eroute_owner
> > == SOS_NOBODY
> >
> > kernel_interface was left set to AUTO_PICK even though USE_KLIPS had
> > been selected by the code. Note sure if this actually affected netkey or
> > others but it may.
> >
> > This change makes sure that, once an interface is selected,
> > everything points to that interface being the one.
> >
> > This was a subtle side affect of
> > fdfb59b413eec432969014762ceb847ef7e5e9a4 :-)
>
> I don't understand. The code reads (with + for your added lines)
>
> switch(kern_interface) {
> case AUTO_PICK:
> [...]
>
> case USE_KLIPS:
> + kern_interface = USE_KLIPS;
> [...]
>
> #if defined(BSD_KAME)
> case USE_BSDKAME:
> + kern_interface = USE_BSDKAME;
> [...]
>
> Aren't you just setting it to the value it must have because otherwise it
> would never end up in the switch statement to begin with? I mean, it won't
> hurt, but I don't think this can be fixing any assertion failed that you
> saw.
I used to get these failures too, and these lines were also part of my
original patch for the problem.
But I checked again and with Pauls patch in
fdfb59b413eec432969014762ceb847ef7e5e9a4,
SA deletion works without assertion failures (as far as I can tell). So
his fix should be sufficient.
Thomas
More information about the Dev
mailing list