]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Make ospf6_prefix have an empty v6 addr at end
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 10 Oct 2017 17:07:16 +0000 (13:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Oct 2017 12:19:26 +0000 (08:19 -0400)
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>
ospf6d/ospf6_proto.h

index 174b5a4f0fbf2fa5d2fe575cb2da84d3678f2d10..5919190854e269e4a885ac6dba2b3d3c082f109c 100644 (file)
@@ -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 */