summaryrefslogtreecommitdiff
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorpaul <paul>2003-04-09 07:16:04 +0000
committerpaul <paul>2003-04-09 07:16:04 +0000
commit960182aaf05c2f11415789b2edcdc53ac3858f01 (patch)
treea4bb99006f25df484c21ab4d66d7f22fc2622825 /zebra/connected.c
parentef4e09961da9f2c50d1535fb4348f12c4d41612f (diff)
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.
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index dcb0b875..5d1c6b66 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -162,7 +162,8 @@ connected_down_ipv4 (struct interface *ifp, struct connected *ifc)
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;