[Nagios-devel] d

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

[Nagios-devel] d

Post by Guest »

if a fail to alloc memory happens on create_job() we need to treat it.

ok?


Index: base/workers.c
===================================================================
--- base/workers.c (revision 2472)
+++ base/workers.c (working copy)
@@ -967,6 +967,9 @@
timeout = host_check_timeout;

job = create_job(WPJOB_CHECK, cr, timeout, cmd);
+ if (job == NULL)
+ return ERROR;
+
return wproc_run_job(job, mac);
}






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