Re: [Nagios-devel] patch: small segfault fixes

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: small segfault fixes

Post by Guest »

On Sat, 2004-09-11 at 17:03, Andreas Ericsson wrote:
> Matthew Kent wrote:
> > Couple tiny fixes for latest copy in cvs. Fixes a segfault I was getting
> > for not having host_perfdata_file/service_perfata_file defined in my
> > nagios.cfg
> >
>
> Won't this cause segfault when the macro is actually substituted, seeing
> as it will be set to either an invalid address or a NULL pointer?
>

Should have mentioned that I tested this and it was okay. Looking at the
relevant code I can see that if the macro is referenced without being
defined its simply ignored (base/utils.c:655).

- Matthew






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