Blame SOURCES/net-snmp-5.7.2-CVE-2018-18066.patch

b5ae06
diff -urNp o/agent/helpers/table.c n/agent/helpers/table.c
b5ae06
--- o/agent/helpers/table.c	2019-08-14 11:12:30.693772682 +0200
b5ae06
+++ n/agent/helpers/table.c	2019-08-14 11:22:14.674403722 +0200
b5ae06
@@ -406,6 +406,8 @@ table_helper_handler(netsnmp_mib_handler
b5ae06
             if (reqinfo->mode == MODE_GET)
b5ae06
                 table_helper_cleanup(reqinfo, request,
b5ae06
                                      SNMP_NOSUCHOBJECT);
b5ae06
+            else
b5ae06
+                request->processed = 1; /* skip if next handler called */
b5ae06
             continue;
b5ae06
         }
b5ae06
 
b5ae06
@@ -483,6 +485,8 @@ table_helper_handler(netsnmp_mib_handler
b5ae06
 #endif /* NETSNMP_NO_WRITE_SUPPORT */
b5ae06
                     table_helper_cleanup(reqinfo, request,
b5ae06
                                          SNMP_NOSUCHOBJECT);
b5ae06
+                else
b5ae06
+                    request->processed = 1; /* skip if next handler called */
b5ae06
                 continue;
b5ae06
             }
b5ae06
             /*