summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-21 11:48:09 +0100
committerVolker Lendecke <vl@samba.org>2008-03-21 11:48:09 +0100
commit1e696c284552904cc16ed8ccac239a7fad6e1d97 (patch)
treee03b821a559376865f5eef6d49ba5d65f4bc839d
parent7168f310a64de3647a26d086c167ee9b8b8e39f2 (diff)
downloadsamba-1e696c284552904cc16ed8ccac239a7fad6e1d97.tar.gz
samba-1e696c284552904cc16ed8ccac239a7fad6e1d97.tar.bz2
samba-1e696c284552904cc16ed8ccac239a7fad6e1d97.zip
Fix Coverity ID 506
(This used to be commit c9add4d59a1615aabc565e323cb19cf7ef4b6b64)
-rw-r--r--source3/registry/reg_perfcount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c
index bc22b3da72..e608847048 100644
--- a/source3/registry/reg_perfcount.c
+++ b/source3/registry/reg_perfcount.c
@@ -678,7 +678,10 @@ bool _reg_perfcount_get_instance_info(PERF_INSTANCE_DEFINITION *inst,
memset(temp, 0, PERFCOUNT_MAX_LEN);
snprintf(temp, PERFCOUNT_MAX_LEN, "i%d", instId);
_reg_perfcount_make_key(&key, buf, PERFCOUNT_MAX_LEN, obj->ObjectNameTitleIndex, temp);
- _reg_perfcount_get_counter_data(key, &data);
+ if (!_reg_perfcount_get_counter_data(key, &data)) {
+ DEBUG(3, ("_reg_perfcount_get_counter_data failed\n"));
+ return false;
+ }
if(data.dptr == NULL)
{
DEBUG(3, ("_reg_perfcount_get_instance_info: No instance data for instance [%s].\n",