Don't crash trying to decode non-existent job ACL in notif_check_acl().
authorZdeněk Salvet <salvet@ics.muni.cz>
Thu, 27 Mar 2008 08:13:17 +0000 (08:13 +0000)
committerZdeně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

index cde8fbf..99687e6 100644 (file)
@@ -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");