[PATCH] send_nsca segfault on timeout
Ethan Galstad
nagios at nagios.org
Tue Jan 15 22:18:09 CET 2008
Thanks for the patch Holger - this will be in CVS shortly.
Holger Weiss wrote:
> If send_nsca runs into the timeout while it's in encrypt_init(), it can
> segfault because encrypt_cleanup() (which is called from the signal
> handler) calls mcrypt_generic_end() although mcrypt_generic_init()
> wasn't done yet. This happens every now and then for us, for some
> reason send_nsca sometimes timeouts while it's in mcrypt_generic_init().
> The attached patch checks whether mcrypt_generic_init() was called
> before calling mcrypt_generic_end().
>
> Holger
>
>
Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web: www.nagios.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list