From 5ff379fca6165f4dcbcf9a588e27cefc1a568289 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Thu, 27 Mar 2008 08:13:17 +0000 Subject: [PATCH] Don't crash trying to decode non-existent job ACL in notif_check_acl(). --- org.glite.lb.server/src/notif_match.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 1.8.2.3