Don't crash on non-DAG here (for av==NULL required non-zero error code).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 20 Feb 2007 10:30:22 +0000 (10:30 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 20 Feb 2007 10:30:22 +0000 (10:30 +0000)
org.glite.lb.server/src/lb_plugin.c

index 5cf509f..162dfa7 100644 (file)
@@ -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;