]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Cleanup pointer assignment so compiler doesn't get confused
authorDonald Sharp <sharpd@nvidia.com>
Wed, 22 Jun 2022 11:48:51 +0000 (07:48 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 23 Jun 2022 17:29:19 +0000 (13:29 -0400)
commit8b5153aab09695f19eed74b141919487369b58c2
treef6e84f1b15cd875813d346f836815b95ef176181
parent9d3de36d0d09f76f5caf3caae18293a0b105b6fd
bgpd: Cleanup pointer assignment so compiler doesn't get confused

Coverity SA thinks that the `struct prefix`.u.prefix4 is limited
to actually 4 bytes of memory at that spot, but it's in a union
and it can be treated as a prefix6 as well.  Just change the
pointer assignment to something that covers both easily.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/rfapi/vnc_zebra.c