diff options
author | Christian Franke <chris@opensourcerouting.org> | 2013-02-20 10:00:53 +0000 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2013-04-09 17:06:38 +0200 |
commit | 58952492d2eedd4b7974274a578a1fa9707125bb (patch) | |
tree | ef09366f20a103188a07bc9ed753bec723345967 | |
parent | c095185c26f72bff14238ca1209ef6b2d7a8b935 (diff) |
ospfd: fix LSA initialization for build without opaque LSA
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>
-rw-r--r-- | ospfd/ospf_packet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 9a4587d9..d3f1b563 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -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 */ |