use the correct error code

This commit is contained in:
Hubert Chathi 2018-10-13 19:47:51 -04:00
parent af86a9a8b8
commit 8c1169f0f5

View file

@ -70,7 +70,7 @@ size_t olm_pk_encryption_set_recipient_key (
) { ) {
if (key_length < olm_pk_key_length()) { if (key_length < olm_pk_key_length()) {
encryption->last_error = encryption->last_error =
OlmErrorCode::OLM_OUTPUT_BUFFER_TOO_SMALL; // FIXME: OlmErrorCode::OLM_INPUT_BUFFER_TOO_SMALL;
return std::size_t(-1); return std::size_t(-1);
} }
olm::decode_base64( olm::decode_base64(