X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ospfd%2Fospf_flood.c;h=b4e9dda58a106f51347399df61be7d0cad0caf03;hb=5b3d4186defcf9faa15fce45703ee8c5a80f74db;hp=002c6bba8d7023a52743955ed84b09466c538be5;hpb=164ab8625e05ddc4f21d7da9fe1f20f50899e13e;p=mirror_frr.git diff --git a/ospfd/ospf_flood.c b/ospfd/ospf_flood.c index 002c6bba8..b4e9dda58 100644 --- a/ospfd/ospf_flood.c +++ b/ospfd/ospf_flood.c @@ -810,8 +810,7 @@ struct ospf_lsa *ospf_ls_request_new(struct lsa_header *lsah) { struct ospf_lsa *new; - new = ospf_lsa_new(); - new->data = ospf_lsa_data_new(OSPF_LSA_HEADER_SIZE); + new = ospf_lsa_new_and_data(OSPF_LSA_HEADER_SIZE); memcpy(new->data, lsah, OSPF_LSA_HEADER_SIZE); return new;