From c0b9ad5fc83e913e6ef761390c6211d6d240c212 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 13 Apr 2020 14:17:10 +0200 Subject: [PATCH] agent: fix crash on AgentX reconnect with NetSNMP 5.8 --- NEWS | 1 + src/daemon/agent_priv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f9860917..bbf8584c 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ 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 59054ccc..6901df8f 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