From: Peter Howkins Date: Wed, 4 Jul 2018 17:15:49 +0000 (+0100) Subject: dtcm: Coverity 88584 X-Git-Tag: 2.3.0a~189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=689916c98d8c94f979a6521791a373de2e988aa5;p=oweals%2Fcde.git dtcm: Coverity 88584 --- diff --git a/cde/programs/dtcm/server/cmsfunc.c b/cde/programs/dtcm/server/cmsfunc.c index 79f02e55..86dc10f0 100644 --- a/cde/programs/dtcm/server/cmsfunc.c +++ b/cde/programs/dtcm/server/cmsfunc.c @@ -473,7 +473,7 @@ cms_set_calendar_attr_5_svc(cms_set_cal_attr_args *args, struct svc_req *svcrq) } } else { int i; - Access_Entry_4 *v4list; + Access_Entry_4 *v4list = NULL; /* for old format file, the only settable calendar attribute * is access list @@ -490,7 +490,10 @@ cms_set_calendar_attr_5_svc(cms_set_cal_attr_args *args, struct svc_req *svcrq) if ((res = _DtCmsCmsAccessToV4Access( args->attrs[i].value->item.access_list_value, &v4list)) == CSA_SUCCESS) + { res = _DtCmsSetV4AccessListAndLog(cal, v4list); + } + free(v4list); } if (res != CSA_SUCCESS)