mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
ospfd: buffer termination (Coverity 1464993)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
558c7c80bf
commit
e4407ea6d0
@ -1125,7 +1125,7 @@ static int ospf_ext_pref_lsa_originate1(struct ospf_area *area,
|
|||||||
if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) {
|
if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) {
|
||||||
char area_id[INET_ADDRSTRLEN];
|
char area_id[INET_ADDRSTRLEN];
|
||||||
|
|
||||||
strncpy(area_id, inet_ntoa(area->area_id), INET_ADDRSTRLEN);
|
inet_ntop(AF_INET, &area->area_id, area_id, sizeof(area_id));
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"EXT (%s): LSA[Type%u:%s]: Originate Opaque-LSA "
|
"EXT (%s): LSA[Type%u:%s]: Originate Opaque-LSA "
|
||||||
"Extended Prefix Opaque LSA: Area(%s), Link(%s)",
|
"Extended Prefix Opaque LSA: Area(%s), Link(%s)",
|
||||||
@ -1175,7 +1175,7 @@ static int ospf_ext_link_lsa_originate1(struct ospf_area *area,
|
|||||||
if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) {
|
if (IS_DEBUG_OSPF(lsa, LSA_GENERATE)) {
|
||||||
char area_id[INET_ADDRSTRLEN];
|
char area_id[INET_ADDRSTRLEN];
|
||||||
|
|
||||||
strncpy(area_id, inet_ntoa(area->area_id), INET_ADDRSTRLEN);
|
inet_ntop(AF_INET, &area->area_id, area_id, sizeof(area_id));
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"EXT (%s): LSA[Type%u:%s]: Originate Opaque-LSA "
|
"EXT (%s): LSA[Type%u:%s]: Originate Opaque-LSA "
|
||||||
"Extended Link Opaque LSA: Area(%s), Link(%s)",
|
"Extended Link Opaque LSA: Area(%s), Link(%s)",
|
||||||
|
Loading…
Reference in New Issue
Block a user