mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 14:54:24 +00:00
pimd: initialize prefix value in Auto-RP
clang-SA complains that it's only partially initialized (because it's used with IPv4 only). The code later calls some AF-generic code, prompting clang-SA to complain that the non-IPv4 parts are used without being set. While this shouldn't happen, just initialize it fully. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
17f512c10d
commit
3ce0fe0e08
@ -308,7 +308,7 @@ static bool pim_autorp_discovery(struct pim_autorp *autorp, uint8_t rpcnt,
|
||||
struct autorp_pkt_grp *grp;
|
||||
size_t offset = 0;
|
||||
pim_addr rp_addr;
|
||||
struct prefix grppfix;
|
||||
struct prefix grppfix = {};
|
||||
char plname[32];
|
||||
struct prefix_list *pl;
|
||||
struct prefix_list_entry *ple;
|
||||
|
Loading…
Reference in New Issue
Block a user