From: Zdeněk Salvet Date: Thu, 27 Mar 2008 08:13:17 +0000 (+0000) Subject: Don't crash trying to decode non-existent job ACL in notif_check_acl(). X-Git-Tag: glite-lb-client-interface_R_3_2_0_1~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5ff379fca6165f4dcbcf9a588e27cefc1a568289;p=jra1mw.git Don't crash trying to decode non-existent job ACL in notif_check_acl(). --- diff --git a/org.glite.lb.server/src/notif_match.c b/org.glite.lb.server/src/notif_match.c index cde8fbf..99687e6 100644 --- 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");