Bugfixes.

This commit is contained in:
Gunnar Beutner 2012-06-12 11:56:12 +02:00
parent 16d2a02e04
commit 7750242384
3 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ string Exception::GetMessage(void) const
*/
const char *Exception::what(void) const throw()
{
return GetMessage().c_str();
return m_Message.c_str();
}
/**

View File

@ -3,7 +3,7 @@ local object application "icinga" {
pubkey = "icinga-c2.crt",
cakey = "ca.crt",
node = "10.0.10.3",
node = "192.168.2.235",
service = 8888
}
@ -18,7 +18,7 @@ local object component "discovery" {
}
local object endpoint "icinga-c1" {
node = "10.0.10.14",
node = "192.168.5.46",
service = 7777,
roles = { "broker" }

View File

@ -179,7 +179,7 @@ Dictionary::Ptr MessagePart::GetDictionary(void) const
bool MessagePart::GetProperty(string key, MessagePart *value) const
{
Object::Ptr object;
if (GetDictionary()->GetProperty(key, &object))
if (!GetDictionary()->GetProperty(key, &object))
return false;
Dictionary::Ptr dictionary = dynamic_pointer_cast<Dictionary>(object);