From: Peter Howkins Date: Fri, 13 Jul 2018 16:55:59 +0000 (+0100) Subject: dtcm: Coverity 88505 X-Git-Tag: 2.3.0a~110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fa768b653b61c2ff2639c17927a488a8e1b5877;p=oweals%2Fcde.git dtcm: Coverity 88505 --- diff --git a/cde/programs/dtcm/server/rtable2.c b/cde/programs/dtcm/server/rtable2.c index 05cb0eb4..5a25b3ad 100644 --- a/cde/programs/dtcm/server/rtable2.c +++ b/cde/programs/dtcm/server/rtable2.c @@ -379,11 +379,14 @@ _DtCm_rtable_set_access_2_svc(Access_Args_2 *args, struct svc_req *svcrq) Access_Status_4 *newstat; newargs = _DtCm_accargs2_to_accargs4(args); - newstat = _DtCm_rtable_set_access_4_svc(newargs, svcrq); - - stat = _DtCm_accstat4_to_accstat2(*newstat); - - if (newargs!=NULL) xdr_free((xdrproc_t)_DtCm_xdr_Access_Args_4, (char*)newargs); + if(newargs) { + newstat = _DtCm_rtable_set_access_4_svc(newargs, svcrq); + + stat = _DtCm_accstat4_to_accstat2(*newstat); + + xdr_free((xdrproc_t)_DtCm_xdr_Access_Args_4, (char*)newargs); + } + return(&stat); }