From c8e9da9e430ac81a7c8563bf482de29c9ff64e4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Thu, 29 May 2008 18:27:44 +0000 Subject: [PATCH] Fix ACL value type, fix small memory leak. --- org.glite.lb.server/src/notif_match.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.server/src/notif_match.c b/org.glite.lb.server/src/notif_match.c index 99687e6..3dd6915 100644 --- a/org.glite.lb.server/src/notif_match.c +++ b/org.glite.lb.server/src/notif_match.c @@ -157,8 +157,6 @@ static int notif_match_conditions(edg_wll_Context ctx,const edg_wll_JobStat *sta static int notif_check_acl(edg_wll_Context ctx,const edg_wll_JobStat *stat,const char *recip) { edg_wll_Acl acl = calloc(1,sizeof *acl); -/* XXX: NO_GACL GACLacl *gacl; */ - void *gacl; int ret; edg_wll_ResetError(ctx); @@ -166,14 +164,14 @@ static int notif_check_acl(edg_wll_Context ctx,const edg_wll_JobStat *stat,const if (stat->acl == NULL) return 0; - ret = edg_wll_DecodeACL(stat->acl,&gacl); + ret = edg_wll_DecodeACL(stat->acl,&acl->value); if (ret) { + edg_wll_FreeAcl(acl); edg_wll_SetError(ctx,EINVAL,"decoding ACL"); return 0; } acl->string = stat->acl; - acl->value = gacl; ret = edg_wll_CheckACL(ctx, acl, EDG_WLL_PERM_READ); -- 1.8.2.3