projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4940d8
)
dtcm: Coverity 89341
author
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 17:44:12 +0000
(18:44 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 17:44:12 +0000
(18:44 +0100)
cde/programs/dtcm/server/rtable3.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/server/rtable3.c
b/cde/programs/dtcm/server/rtable3.c
index faecb2aed2a61559db92df139285dd5c10d6f0d0..2828198d0e11092f9adc5ff669899cabd06824d8 100644
(file)
--- a/
cde/programs/dtcm/server/rtable3.c
+++ b/
cde/programs/dtcm/server/rtable3.c
@@
-377,11
+377,13
@@
_DtCm_deregister_callback_3_svc(Registration_3 *r, struct svc_req *svcrq)
stat = 0;
- newreg = _DtCm_reg3_to_reg4(r);
- newstat = _DtCm_deregister_callback_4_svc(newreg, svcrq);
- stat = _DtCm_regstat4_to_regstat3(*newstat);
+ newreg = _DtCm_reg3_to_reg4(r);
+ if(newreg) {
+ newstat = _DtCm_deregister_callback_4_svc(newreg, svcrq);
+ stat = _DtCm_regstat4_to_regstat3(*newstat);
- if (newreg!=NULL) xdr_free((xdrproc_t)_DtCm_xdr_Registration_4, (char*)newreg);
+ xdr_free((xdrproc_t)_DtCm_xdr_Registration_4, (char*)newreg);
+ }
return(&stat);
}