From 2bc33f22dfc9c47a58f933c5926c7d6e7a9b4711 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 10 Nov 2017 09:49:50 -0500 Subject: [PATCH] fixed #994. check if keys are set --- libi2pd_client/BOB.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libi2pd_client/BOB.cpp b/libi2pd_client/BOB.cpp index 72cbcd16..243ac62d 100644 --- a/libi2pd_client/BOB.cpp +++ b/libi2pd_client/BOB.cpp @@ -448,7 +448,10 @@ namespace client void BOBCommandSession::GetdestCommandHandler (const char * operand, size_t len) { LogPrint (eLogDebug, "BOB: getdest"); - SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ()); + if (m_Keys.GetPublic ()) // keys are set ? + SendReplyOK (m_Keys.GetPublic ()->ToBase64 ().c_str ()); + else + SendReplyError ("keys are not set"); } void BOBCommandSession::OuthostCommandHandler (const char * operand, size_t len)