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

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