Re: net-snmp dumps core when snmpd.conf contains an incorrect logmatch parameter regex

2014-04-16 Thread Mohan Gorai
Hi Bill, It has been submitted at https://sourceforge.net/p/net-snmp/patches/1279/, as suggested. On April 9, 2014 06:48:43 PM IST, Bill Fenner wrote: > Hi Mohan, > > Thanks for the patch. Can you please upload it at > http://www.net-snmp.org/patches/ so that it doesn't get lost? > > Thanks, >

Re: net-snmp dumps core when snmpd.conf contains an incorrect logmatch parameter regex

2014-04-09 Thread Bill Fenner
Hi Mohan, Thanks for the patch. Can you please upload it at http://www.net-snmp.org/patches/ so that it doesn't get lost? Thanks, Bill On Tue, Mar 18, 2014 at 8:11 AM, Mohan Gorai wrote: > Hi, > > On Solaris, whenever there is a wrong regex as logmatch parameter, when > the corresponding s

net-snmp dumps core when snmpd.conf contains an incorrect logmatch parameter regex

2014-04-08 Thread Mohan Gorai
Hi, On Solaris, whenever there is a wrong regex as logmatch parameter, when the corresponding structures are being de-allocated, snmpd coredumps. This is because we are freeing the structures using regfree(), even when the corresponding regcomp() returns with an error. The attached patch fix

Re: net-snmp dumps core when snmpd.conf contains an incorrect logmatch parameter regex

2014-04-08 Thread Mohan Gorai
The patch is against net-snmp 5.4.1 code. But, I can still see the issue on the latest code. If need be, I can provide the changes against the latest version. On March 18, 2014 05:41:46 PM IST, Mohan Gorai wrote: > Hi, > > On Solaris, whenever there is a wrong regex as logmatch parameter, > when