From: Peter Howkins Date: Fri, 13 Jul 2018 17:47:22 +0000 (+0100) Subject: dtcm: Coverity 89232 X-Git-Tag: 2.3.0a~81 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2c9c01051c84a46c30f6ae1cbe41a2c309139e8;p=oweals%2Fcde.git dtcm: Coverity 89232 --- diff --git a/cde/programs/dtcm/server/rtable3.c b/cde/programs/dtcm/server/rtable3.c index 2828198d..1bfa608f 100644 --- a/cde/programs/dtcm/server/rtable3.c +++ b/cde/programs/dtcm/server/rtable3.c @@ -397,11 +397,13 @@ _DtCm_rtable_set_access_3_svc(Access_Args_3 *args, struct svc_req *svcrq) stat = 0; - newargs = _DtCm_accargs3_to_accargs4(args); - newstat = _DtCm_rtable_set_access_4_svc(newargs, svcrq); - stat = _DtCm_accstat4_to_accstat3(*newstat); + newargs = _DtCm_accargs3_to_accargs4(args); + if(newargs) { + newstat = _DtCm_rtable_set_access_4_svc(newargs, svcrq); + stat = _DtCm_accstat4_to_accstat3(*newstat); - if (newargs!=NULL) xdr_free((xdrproc_t)_DtCm_xdr_Access_Args_4, (char*)newargs); + xdr_free((xdrproc_t)_DtCm_xdr_Access_Args_4, (char*)newargs); + } return(&stat); }