31 lines
905 B
Diff
31 lines
905 B
Diff
From 893b9baa6ae81a877e76842c29a637eeb2cbd0e2 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Guido=20J=C3=A4kel?= <g.jaekel@dnb.de>
|
|
Date: Thu, 3 Sep 2020 17:03:33 +0200
|
|
Subject: [PATCH] libsnmp: Increase MAX_IMPORTS
|
|
|
|
Today, I stepped into an well-known old issue
|
|
(https://sourceforge.net/p/net-snmp/mailman/message/16927159/) using MIBs
|
|
for a CISCO device.
|
|
|
|
[bvanassche: edited commit message]
|
|
---
|
|
snmplib/parse.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/snmplib/parse.c b/snmplib/parse.c
|
|
index ac5a36d..96588a4 100644
|
|
--- a/snmplib/parse.c
|
|
+++ b/snmplib/parse.c
|
|
@@ -3636,7 +3636,7 @@ parse_imports(FILE * fp)
|
|
register int type;
|
|
char token[MAXTOKEN];
|
|
char modbuf[256];
|
|
-#define MAX_IMPORTS 256
|
|
+#define MAX_IMPORTS 512
|
|
struct module_import import_list[MAX_IMPORTS];
|
|
int this_module;
|
|
struct module *mp;
|
|
--
|
|
1.8.3.1
|
|
|