[Babel-users] Possible crash in Babel 0.91
Juliusz Chroboczek
Juliusz.Chroboczek at pps.jussieu.fr
Tue Nov 25 17:58:44 UTC 2008
There's a possible crash in 0.91, which I've discovered Friday last but
didn't have time to announce. An invariant is violated when an interface
goes down, which may cause a crash when it goes up again.
The patch is attached, it's also in the Darcs repository. I'll release
a fixed 0.92 when I have some time.
Juliusz
Fri Nov 21 03:58:34 CET 2008 Juliusz Chroboczek <jch at pps.jussieu.fr>
* Make sure net->buffered_updates is cleared when freed.
diff -rN -u old-babel/network.c new-babel/network.c
--- old-babel/network.c 2008-11-25 18:57:18.000000000 +0100
+++ new-babel/network.c 2008-11-25 18:57:18.000000000 +0100
@@ -292,6 +292,7 @@
net->update_bufsize = 0;
if(net->buffered_updates)
free(net->buffered_updates);
+ net->buffered_updates = NULL;
net->sendbuf = NULL;
if(net->ifindex > 0) {
memset(&mreq, 0, sizeof(mreq));
More information about the Babel-users
mailing list