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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

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

Post 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]
Locked