Guddenahalli Naganna, Jayaprakasha wrote: > The main problem is in real_init_master(), we free agentx_sockets which > is netsnmp_ds_strings[1][1] but we never reset netsnmp_ds_strings[1][1] > to 0. Later on, we calloc an slp which has the same ptr as > netsnmp_ds_strings[1][1] & add the slp to the linked list. Since > netsnmp_ds_strings[1][1] is not 0, we temper with it which will screw up > the linked list. [...] > fix for this is as follows, > > Define a function in default_store.c file which sets > netsnmp_ds_strings[storeid][which] to NULL and call it from > real_init_master() after SNMP_FREE(agentx_sockets). Freeing twice a > pointer was causing core dump.
Can you please file this in the bug db (or patch db if you can come up with a proposed patch) so it won't get lost? http://www.net-snmp.org/bugs http://www.net-snmp.org/patches +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
