]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: default to dotted quad instead of ret NULL
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 25 May 2017 04:09:52 +0000 (04:09 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 25 May 2017 04:09:52 +0000 (04:09 +0000)
to fix coverity warning

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ospf6d/ospf6_area.c

index bf98f704dae2710720d2ac3e2bfd4356eaa21743..e652a71bb639c66d6a8f444bf9732b5c82aaf25a 100644 (file)
@@ -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;