Page 1 of 1

Re: [Nagios-devel] [PATCH] send_nsca segfault on timeout

Posted: Tue Jan 15, 2008 1:18 pm
by Guest
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: [email protected]
Web: www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]