]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_flood.c
ospfd: Add ospf_lsa_new_and_data function and abstract away
[mirror_frr.git] / ospfd / ospf_flood.c
index 002c6bba8d7023a52743955ed84b09466c538be5..b4e9dda58a106f51347399df61be7d0cad0caf03 100644 (file)
@@ -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;