#include "ospfd/ospf_lsdb.h"
#include "ospfd/ospf_neighbor.h"
#include "ospfd/ospf_dump.h"
+#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"
#include "ospfd/ospf_api.h"
/* Extract LSA from message */
lsalen = ntohs(cn->data.length);
lsa = XMALLOC(MTYPE_OSPF_APICLIENT, lsalen);
- if (!lsa) {
- fprintf(stderr, "LSA update: Cannot allocate memory for LSA\n");
- return;
- }
+
memcpy(lsa, &(cn->data), lsalen);
/* Invoke registered update callback function */
/* Extract LSA from message */
lsalen = ntohs(cn->data.length);
lsa = XMALLOC(MTYPE_OSPF_APICLIENT, lsalen);
- if (!lsa) {
- fprintf(stderr, "LSA delete: Cannot allocate memory for LSA\n");
- return;
- }
+
memcpy(lsa, &(cn->data), lsalen);
/* Invoke registered update callback function */