vrrp: change init of vrrp key in VR lookup 92/28192/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 5 Aug 2020 22:04:06 +0000 (17:04 -0500)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 7 Aug 2020 17:06:21 +0000 (17:06 +0000)
commit6042d28155a5470827c9756b39a405fe4e2cd84b
treef69e207d27c7daf141adba6970f3164fd4839de5
parent35050289e6b5f6e2939b1d08ed058ab952468943
vrrp: change init of vrrp key in VR lookup

Type: fix

A struct that is used as a hash key was being initialized in its
declaration. On CentOS 8 this caused some hash lookups to fail.
This seems to be caused by uninitialized padding.

Use clib_memset() to initialize the key with 0's to avoid the issue.

Change-Id: I00555c201a1ab34133971313ba14f20f4e867a30
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/vrrp/vrrp.h