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:
6f47ba0
)
Don't crash trying to decode non-existent job ACL in notif_check_acl().
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 27 Mar 2008 08:13:17 +0000
(08:13 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 27 Mar 2008 08:13:17 +0000
(08:13 +0000)
org.glite.lb.server/src/notif_match.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/notif_match.c
b/org.glite.lb.server/src/notif_match.c
index
cde8fbf
..
99687e6
100644
(file)
--- a/
org.glite.lb.server/src/notif_match.c
+++ b/
org.glite.lb.server/src/notif_match.c
@@
-164,6
+164,8
@@
static int notif_check_acl(edg_wll_Context ctx,const edg_wll_JobStat *stat,const
edg_wll_ResetError(ctx);
if (ctx->noAuth || strcmp(stat->owner,recip) == 0) return 1;
+ if (stat->acl == NULL) return 0;
+
ret = edg_wll_DecodeACL(stat->acl,&gacl);
if (ret) {
edg_wll_SetError(ctx,EINVAL,"decoding ACL");