]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: clarify indentation and comments in ospf_lsa_maxage_delete
authorChristian Franke <chris@opensourcerouting.org>
Mon, 28 Apr 2014 08:04:59 +0000 (08:04 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 14 May 2014 14:46:37 +0000 (16:46 +0200)
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Feng Lu <lu.feng@6wind.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospfd/ospf_lsa.c

index 270c1ea216b6ddb389e493f647d0f48ddfe71d2e..369655163af5af2a08a892d8b0d7cc61c50eb528 100644 (file)
@@ -2915,9 +2915,9 @@ ospf_lsa_maxage_delete (struct ospf *ospf, struct ospf_lsa *lsa)
          UNSET_FLAG(lsa->flags, OSPF_LSA_IN_MAXAGE);
          ospf_lsa_unlock (&lsa); /* maxage_lsa */
          rn->info = NULL;
-         route_unlock_node (rn); /* route_node_lookup */
+         route_unlock_node (rn); /* unlock node because lsa is deleted */
        }
-         route_unlock_node (rn); /* route_node_lookup */
+      route_unlock_node (rn); /* route_node_lookup */
     }
 }