create_job() may return NULL
Ricardo Jose Maraschini
ricardo.maraschini at opservices.com.br
Fri Nov 23 18:14:15 CET 2012
Hya,
Function create_job() may return NULL in case of memory
allocation problems, so i think its valid to verify if
job is valid on wproc_run_job().
-rm
===================================================================
--- base/workers.c (revision 2479)
+++ base/workers.c (working copy)
@@ -869,6 +869,9 @@
worker_process *wp;
int ret;
+ if (!job)
+ return ERROR;
+
/*
* get_worker() also adds job to the workers list
* and sets job_id
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
More information about the Developers
mailing list