[icinga-checkins] icinga.org: icinga2/master: Fix crash in JsonRpcConnection:: MessageHandlerWrapper
git at icinga.org
git at icinga.org
Mon Aug 22 16:39:26 CEST 2016
Module: icinga2
Branch: master
Commit: a28e1b371c1eeb75506846004d2ec5b791944b2a
URL: https://git.icinga.org/?p=icinga2.git;a=commit;h=a28e1b371c1eeb75506846004d2ec5b791944b2a
Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date: Mon Aug 22 16:35:16 2016 +0200
Fix crash in JsonRpcConnection::MessageHandlerWrapper
fixes #12506
---
lib/remote/jsonrpcconnection.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/remote/jsonrpcconnection.cpp b/lib/remote/jsonrpcconnection.cpp
index 54c3935..1c8ef03 100644
--- a/lib/remote/jsonrpcconnection.cpp
+++ b/lib/remote/jsonrpcconnection.cpp
@@ -145,7 +145,7 @@ void JsonRpcConnection::Disconnect(void)
void JsonRpcConnection::MessageHandlerWrapper(const String& jsonString)
{
- if (m_Stream->IsEof())
+ if (!m_Stream || m_Stream->IsEof())
return;
try {
More information about the icinga-checkins
mailing list