]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: fix clang-SA warning
authorDavid Lamparter <equinox@diac24.net>
Fri, 29 Mar 2019 11:25:45 +0000 (12:25 +0100)
committerDavid Lamparter <equinox@diac24.net>
Wed, 17 Apr 2019 11:28:49 +0000 (13:28 +0200)
Need to clear refresh_list before dropping the reference.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospfd/ospf_lsa.c

index e38193cffc8e19d1b148847c572945dd0a96b273..bf46d22031762a375253d6a84a368d8860faee89 100644 (file)
@@ -3646,8 +3646,8 @@ void ospf_refresher_unregister_lsa(struct ospf *ospf, struct ospf_lsa *lsa)
                        list_delete(&refresh_list);
                        ospf->lsa_refresh_queue.qs[lsa->refresh_list] = NULL;
                }
-               ospf_lsa_unlock(&lsa); /* lsa_refresh_queue */
                lsa->refresh_list = -1;
+               ospf_lsa_unlock(&lsa); /* lsa_refresh_queue */
        }
 }