From 8e846b02bce3313666c00b2fe9071afde8c67f7a Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 16 Nov 2017 16:55:45 -0600 Subject: [PATCH] tighten up validation --- src/remoteClient/clientContextImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 1777b82..9e311d4 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -2296,6 +2296,8 @@ public: dynamic_pointer_cast( transport->cachedDeserialize(payloadBuffer) ); + if(!structure) + throw std::runtime_error("initResponse() w/o Structure"); m_monitorStrategy->init(structure); bool restoreStartedState = m_started;