From: František Dvořák Date: Tue, 20 Feb 2007 10:30:22 +0000 (+0000) Subject: Don't crash on non-DAG here (for av==NULL required non-zero error code). X-Git-Tag: glite-lb-server_R_1_4_6_1~4 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d1677d5484e9225ba99c03007033c91487baeb12;p=jra1mw.git Don't crash on non-DAG here (for av==NULL required non-zero error code). --- diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 5cf509f..162dfa7 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -570,7 +570,7 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t } else { char et[BUFSIZ]; *attrval = NULL; - err.code = 0; + err.code = ENOENT; snprintf(et,sizeof et,"Value unknown for attribute '%s', there are no subjobs.",attr); et[BUFSIZ-1] = 0; err.desc = et;