OK, one moe line: don't do crazy things on error.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 7 Apr 2007 14:38:58 +0000 (14:38 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 7 Apr 2007 14:38:58 +0000 (14:38 +0000)
org.glite.lb.server/src/userjobs.c

index 962b086..e90043a 100644 (file)
@@ -66,6 +66,7 @@ int edg_wll_UserJobs(
                if (edg_wll_JobStatus(ctx, out[i], -1, &(*states)[i]) != 0) {
                        for (j = 0; j < i; j++) edg_wll_FreeStatus(&(*states)[j]);
                        *states = NULL;
+                       break;
                }
        }
 err: