Browse Source

don't check TRANSIENT destination

pull/1313/head
orignal 5 years ago
parent
commit
9e9236badb
  1. 13
      libi2pd_client/SAM.cpp

13
libi2pd_client/SAM.cpp

@ -367,12 +367,15 @@ namespace client
return; return;
} }
//ensure it's a base64 string if (destination != SAM_VALUE_TRANSIENT)
i2p::data::PrivateKeys keys;
if (!keys.FromBase64(destination))
{ {
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true); //ensure it's a base64 string
return; i2p::data::PrivateKeys keys;
if (!keys.FromBase64(destination))
{
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true);
return;
}
} }
// create destination // create destination

Loading…
Cancel
Save