From: Jan Pospíšil Date: Tue, 21 Mar 2006 13:44:25 +0000 (+0000) Subject: proper jobId allocation X-Git-Tag: glite-security-gsoap-plugin_R_1_3_0~26 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=b00b800b072d187af84745395daa58633759345d;p=jra1mw.git proper jobId allocation --- diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index f6001af..d5925f7 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -427,7 +427,9 @@ static int lb_status(edg_wll_Event **events, edg_wll_JobStat *status) { /* XXX: job owner and jobId not filled from events normally */ if (events[i]->any.type == EDG_WLL_EVENT_REGJOB) { js->pub.owner = check_strdup(events[i]->any.user); - js->pub.jobId = events[i]->any.jobId; + if (edg_wlc_JobIdDup(events[i]->any.jobId,&js->pub.jobId)) { + goto err; + } } if (processEvent(js, events[i], 0, be_strict, &errstring) == RET_FATAL) { goto err;