Re: [Nagios-devel] patch: small segfault fixes
Posted: Sat Sep 11, 2004 2:30 pm
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]
> 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]