/* recreate job status of subjob */
err = intJobStat_embryonic(ctx, job, (const edg_wll_RegJobEvent *) &(events_p[0]), intstat);
+ //err = intJobStat_embryonic(ctx, job, &(events_p[0].regJob), intstat);
for (i=0; events_p[i].type != EDG_WLL_EVENT_UNDEF ; i++)
edg_wll_FreeEvent(&events_p[i]);
}
else{
*statesOut = NULL;
+ free(can_peername);
return -1;
}
- edg_wll_QueryJobsServer(ctx, (const edg_wll_QueryRec **)conds, 0, &jobsOut, statesOut);
+ if (edg_wll_QueryJobsServer(ctx, (const edg_wll_QueryRec **)conds, 0, &jobsOut, statesOut)){
+ *statesOut = NULL;
+ }
for (i = 0; conds[i]; i++)
free(conds[i]);
// check if owner and lastupdatetime is indexed
idx = 0;
- for (i = 0; ctx->job_index[i]; i++)
+ if (ctx->job_index) for (i = 0; ctx->job_index[i]; i++)
if (ctx->job_index[i]->attr == EDG_WLL_QUERY_ATTR_OWNER)
idx++;
else if (ctx->job_index[i]->attr == EDG_WLL_QUERY_ATTR_LASTUPDATETIME)
ret = HTTP_NOTFOUND;
edg_wll_SetError(ctx, ENOENT, "current index configuration does not support RSS feeds");
}
- edg_wll_RSSFeed(ctx, states, requestPTR, &message);
+ else
+ edg_wll_RSSFeed(ctx, states, requestPTR, &message);
/*GET /?wsdl */
#define WSDL_LB "LB.wsdl"
#define WSDL_LBTYPES "LBTypes.wsdl"