diff options
author | F. Aragon <paco@voltanet.io> | 2018-07-02 17:05:17 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-07-02 19:06:54 +0200 |
commit | a85297a7c92297af0578fac6d2b48ca8c72a6a34 (patch) | |
tree | 973b64af63600214ca2093a3115558b353bbf043 /zebra/connected.c | |
parent | Merge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff) | |
download | frr-a85297a7c92297af0578fac6d2b48ca8c72a6a34.tar.xz frr-a85297a7c92297af0578fac6d2b48ca8c72a6a34.zip |
bgpd zebra: element overflow (PVS-Studio)
The warning given by PVS-Studio is related to per-element overflow (there is
no real overflow, because of how elements are mapped in the union). This
same warning is typically reported by Coverity, too.
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'zebra/connected.c')
-rw-r--r-- | zebra/connected.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index a9a4dfe08..8869d34fd 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -564,7 +564,7 @@ void connected_delete_ipv6(struct interface *ifp, struct in6_addr *address, if (broad) { memset(&d, 0, sizeof(struct prefix)); d.family = AF_INET6; - IPV6_ADDR_COPY(&d.u.prefix, broad); + IPV6_ADDR_COPY(&d.u.prefix6, broad); d.prefixlen = prefixlen; ifc = connected_check_ptp(ifp, &p, &d); } else |