summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorpaul <paul>2003-04-09 07:16:04 +0000
committerpaul <paul>2003-04-09 07:16:04 +0000
commitd760f6d5b773a28ce6c99f43b7767d093274d1fe (patch)
tree6f0cbdaacb5170fa89c0dab6d17225291a00916c /zebra
parent698c45f7230115a1a1e0a3f1a64ac13ecd5c9bbd (diff)
downloadquagga-d760f6d5b773a28ce6c99f43b7767d093274d1fe.tar.bz2
quagga-d760f6d5b773a28ce6c99f43b7767d093274d1fe.tar.xz
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')
-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;