git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5626b7
)
disgusting memory corruption...
author
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 4 Jul 2008 14:02:45 +0000
(14:02 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 4 Jul 2008 14:02:45 +0000
(14:02 +0000)
org.glite.lb.server/src/jobstat.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/jobstat.c
b/org.glite.lb.server/src/jobstat.c
index
a1c6227
..
cda8631
100644
(file)
--- a/
org.glite.lb.server/src/jobstat.c
+++ b/
org.glite.lb.server/src/jobstat.c
@@
-113,7
+113,7
@@
int edg_wll_JobStatusServer(
if (!edg_wll_LoadIntState(ctx, job, DONT_LOCK, -1 /*all events*/, &ijsp)) {
-
*stat = ijsp->pub
;
+
memcpy(stat, &(ijsp->pub), sizeof(ijsp->pub))
;
free(jobstat.pub.owner); jobstat.pub.owner = NULL;
destroy_intJobStat_extension(ijsp);
free(ijsp);
@@
-128,7
+128,7
@@
int edg_wll_JobStatusServer(
goto rollback;
}
-
*stat = jobstat.pub
;
+
memcpy(stat, &(ijsp->pub), sizeof(ijsp->pub))
;
}
if (edg_wll_GetACL(ctx, job, &acl)) goto rollback;