[Olsr-dev] OSLRd2 segmentation fault
Thu Apr 21 07:59:07 CEST 2016
On Thu, Apr 21, 2016 at 4:59 AM, Gabriel <(spam-protected)> wrote:
>> Using gdb I found out that the instruction causing the SEGFAULT was in
>> olsrv2_routing.c at line 598:
>> memcpy(&rtentry->last_originator, last_originator,
>> After the the SEGFAULT I printed the variable "last_originator" in gdb
>> and it was null.
Thank you for locating this place.
> Sorry, I forgot to explain what I've done:
> I just put an if statement before the instructions to copy the memory
> locations only if the src (last_originator) is not null.
Hmm... I think I see what happens.
For some reason the IPv6 address on the local node is still missing
when the other side sends a NHDP message.
Could you test the following attached patch? I think this one fixes
the original problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 780 bytes
Desc: not available
More information about the Olsr-dev