]> git.puffer.fish Git - mirror/frr.git/commitdiff
Amir - revision 197
authorpaul <paul>
Wed, 9 Apr 2003 07:16:04 +0000 (07:16 +0000)
committerpaul <paul>
Wed, 9 Apr 2003 07:16:04 +0000 (07:16 +0000)
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.

zebra/connected.c

index dcb0b875e54c2d22ed413b89192fdc572d37603e..5d1c6b66735fafaae0262a734e913a1f29079cf1 100644 (file)
@@ -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;