]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
PTP link in RTLSA was not announced correctly.
authorOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 19:12:22 +0000 (19:12 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 19:12:22 +0000 (19:12 +0000)
proto/ospf/topology.c

index 6be0ca6c083799579950bd1994c02a34a750b9e4..aa6ef69bf2303e36472c08fc7eec1c996daff79f 100644 (file)
@@ -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;