]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: fix LSA initialization for build without opaque LSA
authorChristian Franke <chris@opensourcerouting.org>
Wed, 20 Feb 2013 10:00:53 +0000 (10:00 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 9 Apr 2013 15:06:38 +0000 (17:06 +0200)
If configured without opaque LSA support, the old code would incorrectly
associate type 5 LSAs with an area.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospfd/ospf_packet.c

index 9a4587d962ea6850683362bd379906da67e5cd3d..d3f1b5635fe2488d95a9217053771128e489efb3 100644 (file)
@@ -1660,8 +1660,10 @@ ospf_ls_upd_list_lsa (struct ospf_neighbor *nbr, struct stream *s,
         case OSPF_AS_EXTERNAL_LSA:
 #ifdef HAVE_OPAQUE_LSA
         case OSPF_OPAQUE_AS_LSA:
+#endif /* HAVE_OPAQUE_LSA */
           lsa->area = NULL;
           break;
+#ifdef HAVE_OPAQUE_LSA
         case OSPF_OPAQUE_LINK_LSA:
           lsa->oi = oi; /* Remember incoming interface for flooding control. */
           /* Fallthrough */