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]