mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
zebra, ospf6d: Do not check if NULL for XCALLOC()
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
00b0b74847
commit
432ee88c21
@ -144,8 +144,6 @@ unsigned char *ospf6_hash_message_xor(unsigned char *mes1,
|
|||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
result = XCALLOC(MTYPE_OSPF6_AUTH_HASH_XOR, len);
|
result = XCALLOC(MTYPE_OSPF6_AUTH_HASH_XOR, len);
|
||||||
if (!result)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
result[i] = mes1[i] ^ mes2[i];
|
result[i] = mes1[i] ^ mes2[i];
|
||||||
|
@ -119,8 +119,6 @@ struct table_manager_chunk *assign_table_chunk(uint8_t proto, uint16_t instance,
|
|||||||
}
|
}
|
||||||
/* otherwise create a new one */
|
/* otherwise create a new one */
|
||||||
tmc = XCALLOC(MTYPE_TM_CHUNK, sizeof(struct table_manager_chunk));
|
tmc = XCALLOC(MTYPE_TM_CHUNK, sizeof(struct table_manager_chunk));
|
||||||
if (!tmc)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if (zvrf->tbl_mgr->start || zvrf->tbl_mgr->end)
|
if (zvrf->tbl_mgr->start || zvrf->tbl_mgr->end)
|
||||||
manual_conf = true;
|
manual_conf = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user