diff options
author | Paul Jakma <paul.jakma@sun.com> | 2008-04-20 00:31:57 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-07-28 16:24:19 +0100 |
commit | cb9e0ceec988a059dd2269ebc54722c01afb7cca (patch) | |
tree | c558e706ffca27dd4568f729a48b6f8c83a64c9a /zebra | |
parent | 9afabaf048af74a370dfc71411b6963641f713b2 (diff) |
[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.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/kernel_null.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |