]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: remove assert on zero length LSA - which is permitted by spec
authorLou Berger <lberger@labn.net>
Thu, 27 Oct 2022 19:12:23 +0000 (19:12 +0000)
committerLou Berger <lberger@labn.net>
Fri, 28 Oct 2022 16:06:14 +0000 (16:06 +0000)
Signed-off-by: Lou Berger <lberger@labn.net>
ospfd/ospf_lsa.c

index c67181cba607c657a7bc4f1097dd9d9e5173825c..ade75ad5e32074701bc9b09a0a6bb2b22e185690 100644 (file)
@@ -3596,7 +3596,8 @@ int ospf_lsa_different(struct ospf_lsa *l1, struct ospf_lsa *l2,
            && CHECK_FLAG((l1->flags ^ l2->flags), OSPF_LSA_RECEIVED))
                return 1; /* May be a stale LSA in the LSBD */
 
-       assert(l1->size > OSPF_LSA_HEADER_SIZE);
+       if (l1->size == OSPF_LSA_HEADER_SIZE)
+               return 0; /* nothing to compare */
 
        p1 = (char *)l1->data;
        p2 = (char *)l2->data;