mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-19 19:54:42 +00:00
ospf6d: default to dotted quad instead of ret NULL
to fix coverity warning Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
9e962de4b6
commit
dc207b2760
@ -223,11 +223,10 @@ ospf6_area_create (u_int32_t area_id, struct ospf6 *o, int df)
|
|||||||
case OSPF6_AREA_FMT_DECIMAL:
|
case OSPF6_AREA_FMT_DECIMAL:
|
||||||
snprintf (oa->name, sizeof (oa->name), "%u", ntohl (area_id));
|
snprintf (oa->name, sizeof (oa->name), "%u", ntohl (area_id));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
case OSPF6_AREA_FMT_DOTTEDQUAD:
|
case OSPF6_AREA_FMT_DOTTEDQUAD:
|
||||||
inet_ntop (AF_INET, &area_id, oa->name, sizeof (oa->name));
|
inet_ntop (AF_INET, &area_id, oa->name, sizeof (oa->name));
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
oa->area_id = area_id;
|
oa->area_id = area_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user