From: František Dvořák Date: Fri, 22 Jun 2007 16:17:15 +0000 (+0000) Subject: Random fix for status times in WS. X-Git-Tag: glite-lb-build_R_1_6_0_1~40 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3bf69a0faf6a63bd8767c57dbad6d69696b14652;p=jra1mw.git Random fix for status times in WS. Don;t assert withou required status flags. --- diff --git a/org.glite.lb.server/src/ws_typeref.c.T b/org.glite.lb.server/src/ws_typeref.c.T index 03cb8a0..7026344 100644 --- a/org.glite.lb.server/src/ws_typeref.c.T +++ b/org.glite.lb.server/src/ws_typeref.c.T @@ -195,7 +195,7 @@ int edg_wll_StatusToSoap(struct soap *soap,edg_wll_JobStat const *src,struct lbt ! h = js->${usuc}; ! for (i=1; istate); -! GLITE_SECURITY_GSOAP_LIST_GET(h, i-1)->$fmap{$_} = src->$_\[i]; +! GLITE_SECURITY_GSOAP_LIST_GET(h, i-1)->$fmap{$_} = src->$_\[i+1]; ! } ! } ! else { @@ -310,9 +310,9 @@ void edg_wll_SoapToJobStatFlags(const struct lbt__jobFlags *in, int *out) { int i; - assert(in); assert(out); + assert(out); *out = 0; - for ( i = 0; i < in->__sizeflag; i++ ) switch ( in->flag[i] ) + if (in) for ( i = 0; i < in->__sizeflag; i++ ) switch ( in->flag[i] ) { case CLASSADS: *out |= EDG_WLL_STAT_CLASSADS; break; case CHILDREN: *out |= EDG_WLL_STAT_CHILDREN; break;