From cb9e0ceec988a059dd2269ebc54722c01afb7cca Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Sun, 20 Apr 2008 00:31:57 +0100 Subject: [zebra] Fix crash in test_zebra * kernel_null.c: we're pretending to add an address, so set IFC_REAL. If this isn't done, calling into the 'got address from kernel' half of zebra will implicitly-withdraw the ifc, which could cause a crash in test_zebra.c. --- zebra/kernel_null.c | 1 + 1 file changed, 1 insertion(+) (limited to 'zebra') diff --git a/zebra/kernel_null.c b/zebra/kernel_null.c index 94b7b3c7..6b96c6df 100644 --- a/zebra/kernel_null.c +++ b/zebra/kernel_null.c @@ -22,6 +22,7 @@ int kernel_add_route (struct prefix_ipv4 *a, struct in_addr *b, int c, int d) int kernel_address_add_ipv4 (struct interface *a, struct connected *b) { zlog_debug ("%s", __func__); + SET_FLAG (b->conf, ZEBRA_IFC_REAL); connected_add_ipv4 (a, 0, &b->address->u.prefix4, b->address->prefixlen, (b->destination ? &b->destination->u.prefix4 : NULL), NULL); -- cgit v1.2.1