Menu

#1279 snmpd coredumps in logmatch.c::logmatch_free_config on Solaris

backport-needed
accepted
None
5
2014-05-06
2014-04-10
gmr
No

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 fixes the issue.

1 Attachments

Discussion

  • Niels Baggesen

    Niels Baggesen - 2014-05-06

    Thanks for the patch! A slightly modified version has been applied to Net-SNMP.

     
  • Niels Baggesen

    Niels Baggesen - 2014-05-06
    • status: open --> accepted
    • assigned_to: Niels Baggesen
     

Log in to post a comment.