From: Vincent Bernat Date: Mon, 13 Apr 2020 17:58:20 +0000 (+0200) Subject: Revert "agent: fix crash on AgentX reconnect with NetSNMP 5.8" X-Git-Tag: 1.0.6~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c3556d4e702eac4874d6d0907685fdc921ab5d;p=thirdparty%2Flldpd.git Revert "agent: fix crash on AgentX reconnect with NetSNMP 5.8" This reverts commit c0b9ad5fc83e913e6ef761390c6211d6d240c212. This is not needed: global and static variables are zero-initialized in C89. --- diff --git a/NEWS b/NEWS index bbf8584c..f9860917 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,6 @@ lldpd (1.0.6) * Fix: + Do not loose chassis local information when interface status changes. - + Fix crash on AgentX reconnect with NetSNMP 5.8. lldpd (1.0.5) * Changes: diff --git a/src/daemon/agent_priv.c b/src/daemon/agent_priv.c index 6901df8f..59054ccc 100644 --- a/src/daemon/agent_priv.c +++ b/src/daemon/agent_priv.c @@ -45,7 +45,7 @@ #endif static oid netsnmp_unix[] = { TRANSPORT_DOMAIN_LOCAL }; -static netsnmp_tdomain unixDomain = {}; +static netsnmp_tdomain unixDomain; static char * agent_priv_unix_fmtaddr(F_FMTADDR_SIGNATURE)