diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-25 04:09:52 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-25 04:09:52 +0000 |
| commit | dc207b2760bacb9c51da5a6ac6d9ab8636796a02 (patch) | |
| tree | fa6de2fbb18051d7d052bc3694c9e4d1dea0f88c | |
| parent | 9e962de4b619a00a139f8982c9e6528553927f14 (diff) | |
ospf6d: default to dotted quad instead of ret NULL
to fix coverity warning
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | ospf6d/ospf6_area.c | 3 |
1 files changed, 1 insertions, 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; |
