summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2015-05-17 19:25:05 -0500
committerPhil Mesnier <mesnier_p@ociweb.com>2015-05-17 19:25:05 -0500
commitd8009f13298cfae88ec2f1ec5e452804d954b8a2 (patch)
tree5d793ff3619531a013d733621e29f5cb27199b4e
parenta69317924b6b5b60085c87b694f9337e57a377a2 (diff)
parent749d397ff387941c2a5e5dc9692619300ad64f88 (diff)
downloadATCD-d8009f13298cfae88ec2f1ec5e452804d954b8a2.tar.gz
Merge pull request #81 from pmesnier/master
logWalker Coverity fix
-rw-r--r--TAO/utils/logWalker/Log.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/utils/logWalker/Log.cpp b/TAO/utils/logWalker/Log.cpp
index a86fd2937bf..80579b33c54 100644
--- a/TAO/utils/logWalker/Log.cpp
+++ b/TAO/utils/logWalker/Log.cpp
@@ -461,6 +461,14 @@ Log::parse_make_idle_i (void)
char *hpos = ACE_OS::strchr(this->info_,'[');
long handle = ACE_OS::strtol(hpos+1,0,10);
PeerProcess *pp = this->hostproc_->find_peer(handle);
+ if (pp == 0)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "%d: make idle, error parsing %C, can't find peer "
+ "for handle %d, text = %s\n",
+ this->offset_, this->origin_.c_str(), handle, this->info_));
+ return;
+ }
this->thr_->exit_wait (pp, this->offset_);
}