[PATCH] bug freeing dbdes on iface MTU change

Roberto Moreda moreda at allenta.com
Fri Jul 22 21:09:02 CEST 2005


Hi.

I have found a bug that fires up using OSPF when I change an interface
MTU (see patch attached).

On freeing the ospf_packet with the old link database description we
must use mb_free, not rfree. 

There's any new fixes on OSPF waiting for bird 1.0.12 :-)

Regards.

	Roberto

-- 
Roberto Moreda
Allenta Consulting
UNIX, Linux & Security Services
-------------- next part --------------
--- bird-1.0.11/proto/ospf/iface.c	2005-02-21 11:05:21.000000000 +0100
+++ bird-1.0.11.orig/proto/ospf/iface.c	2005-07-22 20:57:43.000000000 +0200
@@ -548,7 +548,7 @@
 	if (ntohs(op->length) <= iface->mtu)	/* If the packet in old buffer is bigger, let it filled by zeros */
 	  memcpy(n->ldbdes, op, iface->mtu);	/* If the packet is old is same or smaller, copy it */
 
-	rfree(op);
+	mb_free(op);
       }
     }
   }


More information about the Bird-users mailing list