From c0f76ddf14994b8c8a1e105ed39ff88bda808c68 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 10 Oct 2017 13:07:16 -0400 Subject: [PATCH] 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 --- ospf6d/ospf6_proto.h | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5