diff options
Diffstat (limited to 'bgpd/bgp_snmp.c')
-rw-r--r-- | bgpd/bgp_snmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_snmp.c b/bgpd/bgp_snmp.c index 0d1aa4df8..5de2bc420 100644 --- a/bgpd/bgp_snmp.c +++ b/bgpd/bgp_snmp.c @@ -311,7 +311,7 @@ bgp_peer_lookup_next (struct in_addr *src) union sockunion su; int ret; - memset (&su, 0, sizeof (union sockunion)); + sockunion_init (&su); bgp = bgp_get_default (); if (! bgp) @@ -621,6 +621,8 @@ bgp4PathAttrLookup (struct variable *v, oid name[], size_t *length, unsigned int len; struct in_addr paddr; + sockunion_init (&su); + #define BGP_PATHATTR_ENTRY_OFFSET \ (IN_ADDR_SIZE + 1 + IN_ADDR_SIZE) |