Amir - revision 197
Log:
I've fixed a small bug in connected_down_ipv4():
I changed
if (ifc_pointopoint (ifc))
into
if (ifc_pointopoint (ifc) && dest)
like show in connected_up_ipv4()
After changing this 'ip address x/y'; 'no ip address x/y' works without
crash
when done in sequence.
diff --git a/zebra/connected.c b/zebra/connected.c
index dcb0b87..5d1c6b6 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -162,7 +162,8 @@
p.family = AF_INET;
p.prefixlen = addr->prefixlen;
- if (ifc_pointopoint (ifc))
+ /* Point-to-point check. */
+ if (dest && ifc_pointopoint (ifc))
p.prefix = dest->prefix;
else
p.prefix = addr->prefix;