From dc207b2760bacb9c51da5a6ac6d9ab8636796a02 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 25 May 2017 04:09:52 +0000 Subject: [PATCH] ospf6d: default to dotted quad instead of ret NULL to fix coverity warning Signed-off-by: Quentin Young --- ospf6d/ospf6_area.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c index bf98f704da..e652a71bb6 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -223,11 +223,10 @@ ospf6_area_create (u_int32_t area_id, struct ospf6 *o, int df) case OSPF6_AREA_FMT_DECIMAL: snprintf (oa->name, sizeof (oa->name), "%u", ntohl (area_id)); break; + default: case OSPF6_AREA_FMT_DOTTEDQUAD: inet_ntop (AF_INET, &area_id, oa->name, sizeof (oa->name)); break; - default: - return NULL; } oa->area_id = area_id;