I will slam this in. Wouldn't this be safer tho?

          if(channels_len == 0) {
             if(route->channels != NULL) {
                          free(route->channels);
                          route->channels = NULL;
              }
             route->channels_len = 0;
         } else {



On Sun, Apr 17, 2016 at 2:52 AM, Matthieu Boutier
<[email protected]> wrote:
>> #3  0x76e4bb80 in malloc_printerr (action=1,
>>    str=0x76efba6c "double free or corruption (fasttop)", ptr=<optimized out>)
>>    at malloc.c:4996
>
>> #5  0x0001a35c in update_route (id=<optimized out>, prefix=<optimized out>,
>>    plen=<optimized out>, src_prefix=<optimized out>, src_plen=0 '\000',
>>    seqno=17136, refmetric=96, interval=1600, neigh=0xc5d9d8,
>>    nexthop=0xc5d9e0 "\376\200", channels=0x7ede598c "", channels_len=0)
>>    at route.c:920
>
> I think the attached patch solves this issue.
>
> Matthieu
>



-- 
Dave Täht
Let's go make home routers and wifi faster! With better software!
http://blog.cerowrt.org

_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Reply via email to