[Babel-users] babeld crashes
Dave Taht
dave.taht at gmail.com
Sun Apr 17 17:08:48 UTC 2016
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
<boutier at pps.univ-paris-diderot.fr> 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
More information about the Babel-users
mailing list