net-snmp: update to 5.9.4
[feed/packages.git] / net / net-snmp / patches / 100-debian-statistics.patch
1 --- a/agent/mibgroup/mibII/interfaces.c
2 +++ b/agent/mibgroup/mibII/interfaces.c
3 @@ -1586,6 +1586,10 @@ Interface_Scan_Init(void)
4 char *stats, *ifstart = line;
5 size_t len;
6
7 + /* Ignore interfaces with no statistics. */
8 + if (strstr(line, "No statistics available."))
9 + continue;
10 +
11 len = strlen(line);
12 if (len && line[len - 1] == '\n')
13 line[len - 1] = '\0';