From dbaba49fae90cf242f476875d3cc22b4e4ca773c Mon Sep 17 00:00:00 2001 From: Ubuntu Developers Date: Mon, 27 Jun 2022 15:01:27 +0800 Subject: [PATCH] autofs-fix-a-recently-introduced-bug HOST-MIB: Fix a recently introduced bug Fixes: cf41e6e91015 ("HOST-MIB: Skip autofs entries") Note: this bug was not introduced by Josef but by me. Description: HOST-MIB: Fix a recently introduced bug Author: Bart Van Assche Origin: upstream, https://github.com/net-snmp/net-snmp/commit/a0df31c18c Applied-Upstream: v5.8.rc4-386-ga0df31c18 (drop after v5.8.1.pre1) Bug: https://sourceforge.net/p/net-snmp/bugs/2968/ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935325 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1835818 Reviewed-by: Rafael David Tinoco Last-Update: 2019-12-16 Gbp-Pq: Name autofs-fix-a-recently-introduced-bug.patch --- agent/mibgroup/host/hrh_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/mibgroup/host/hrh_storage.c b/agent/mibgroup/host/hrh_storage.c index 6f8ff6c..c7c5392 100644 --- a/agent/mibgroup/host/hrh_storage.c +++ b/agent/mibgroup/host/hrh_storage.c @@ -371,7 +371,7 @@ really_try_next: NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES) && Check_HR_FileSys_NFS()) return NULL; - if (Check_HR_FileSys_AutoFs()) + if (HRFS_entry && Check_HR_FileSys_AutoFs()) return NULL; if (store_idx <= NETSNMP_MEM_TYPE_MAX ) { mem = (netsnmp_memory_info*)ptr;