From 68c3556d4e702eac4874d6d0907685fdc921ab5d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 13 Apr 2020 19:58:20 +0200 Subject: [PATCH] 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. --- NEWS | 1 - src/daemon/agent_priv.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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) -- 2.39.5