summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-10 13:07:16 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-11 08:19:26 -0400
commitc0f76ddf14994b8c8a1e105ed39ff88bda808c68 (patch)
treead98cd7d15c62c1c6d4665874358a1c41fa92e1d
parentce5643b120cf6853d0ded7652cb4036b0070cb42 (diff)
ospf6d: Make ospf6_prefix have an empty v6 addr at end
The `struct ospf6_prefix` type expects to have space allocated at the end of the structure for a v6 prefix. So let's tell the compiler that there might be more there. This is to fix a coverity scan warning. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--ospf6d/ospf6_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_proto.h b/ospf6d/ospf6_proto.h
index 174b5a4f0f..5919190854 100644
--- a/ospf6d/ospf6_proto.h
+++ b/ospf6d/ospf6_proto.h
@@ -62,6 +62,7 @@ struct ospf6_prefix {
#define prefix_metric u._prefix_metric
#define prefix_refer_lstype u._prefix_referenced_lstype
/* followed by one address_prefix */
+ struct in6_addr addr[];
};
#define OSPF6_PREFIX_OPTION_NU (1 << 0) /* No Unicast */