|
|
@ -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
|
|
|
|