diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-05 19:12:22 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-05 19:12:22 +0000 |
commit | fdb0c540a82d9732d4d1d36c83e186f36d756d08 (patch) | |
tree | 12778c51e1aee1f21a9111ea3aa0e9cb822f7760 /proto | |
parent | 1605f043aa65b2434eb29d994f622bd79d0f2be7 (diff) |
PTP link in RTLSA was not announced correctly.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 6be0ca6c..aa6ef69b 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -67,7 +67,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p) { case OSPF_IT_PTP: /* rfc2328 - pg126 */ neigh=(struct ospf_neighbor *)HEAD(ifa->neigh_list); - if((neigh!=NULL) || (neigh->state==NEIGHBOR_FULL)) + if((!EMPTY_LIST(ifa->neigh_list)) && (neigh->state==NEIGHBOR_FULL)) { ln->type=LSART_PTP; ln->id=neigh->rid; |