]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-09-29 Gilad Arnold <gilad.arnold@terayon.com>
authorpaul <paul>
Mon, 29 Sep 2003 20:06:13 +0000 (20:06 +0000)
committerpaul <paul>
Mon, 29 Sep 2003 20:06:13 +0000 (20:06 +0000)
* zebra/zebra_rib.c: Fix possible dangling reference to rib
  route_nodes - unlock it the appropriate number of times. (twice,
because of the implicit lock). see [quagga-dev 251].

zebra/zebra_rib.c

index 63d0d1073c566d0de1110785dd2ab55dfa7714f4..ccccd0ad68c926da989c45ffdd3f20a815328131 100644 (file)
@@ -1575,12 +1575,15 @@ static_delete_ipv4 (struct prefix *p, struct in_addr *gate, char *ifname,
     rn->info = si->next;
   if (si->next)
     si->next->prev = si->prev;
+  route_unlock_node (rn);
   
   /* Free static route configuration. */
   if (ifname)
     XFREE (0, si->gate.ifname);
   XFREE (MTYPE_STATIC_IPV4, si);
 
+  route_unlock_node (rn);
+
   return 1;
 }