17962944 snmpd core dump at libnetsnmpmibs.so.15.1.0`mteTrigger_run s11u1-sru
authorMohana Rao Gorai <mohana.gorai@oracle.com>
Mon, 31 Mar 2014 20:27:39 -0700
branchs11u1-sru
changeset 3030 d77bcfbaa552
parent 3029 1451ad0361d8
child 3031 26ff9dffee8b
17962944 snmpd core dump at libnetsnmpmibs.so.15.1.0`mteTrigger_run
components/net-snmp/patches/041.17962944.mteTrigger.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/041.17962944.mteTrigger.patch	Mon Mar 31 20:27:39 2014 -0700
@@ -0,0 +1,36 @@
+# This comes from upstream:
+# http://sourceforge.net/p/net-snmp/code/ci/22bfcd5e555097796e08b2a453ecaa3fafc31266/
+
+--- a/agent/mibgroup/disman/event/mteTrigger.c
++++ b/agent/mibgroup/disman/event/mteTrigger.c
[email protected]@ -336,7 +336,7 @@
+                     if (vp1_prev) {
+                         vp1_prev->next_variable = vtmp;
+                     } else {
+-                        entry->old_results      = vtmp;
++                        var                     = vtmp;
+                     }
+                     vp1_prev = vtmp;
+                     vp2_prev = vp2;
[email protected]@ -433,7 +433,7 @@
+              */
+             if (entry->mteTExTest & entry->mteTExStartup & MTE_EXIST_ABSENT) {
+                 if (!(entry->flags & MTE_TRIGGER_FLAG_VWILD) &&
+-                    vp1->type == ASN_NULL ) {
++                    var->type == ASN_NULL ) {
+                     DEBUGMSGTL(( "disman:event:trigger:fire",
+                                  "Firing initial existence test: "));
+                     DEBUGMSGOID(("disman:event:trigger:fire",
[email protected]@ -449,10 +449,10 @@
+                      *  to report a NULL value, but this clashes with
+                      * the syntax of the mteHotValue MIB object.
+                      */
+-                    entry->mteTriggerFired    = vp1;
++                    entry->mteTriggerFired    = var;
+                     n = entry->mteTriggerValueID_len;
+                     mteEvent_fire(entry->mteTExEvOwner, entry->mteTExEvent, 
+-                                  entry, vp1->name+n, vp1->name_length-n);
++                                  entry, var->name+n, var->name_length-n);
+                 }
+             }
+         } /* !old_results */