From 8c1169f0f57090fe7b715bfb794c8cd72f0236bd Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Sat, 13 Oct 2018 19:47:51 -0400 Subject: use the correct error code --- src/pk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pk.cpp b/src/pk.cpp index 5cfcea2..8db958a 100644 --- a/src/pk.cpp +++ b/src/pk.cpp @@ -70,7 +70,7 @@ size_t olm_pk_encryption_set_recipient_key ( ) { if (key_length < olm_pk_key_length()) { encryption->last_error = - OlmErrorCode::OLM_OUTPUT_BUFFER_TOO_SMALL; // FIXME: + OlmErrorCode::OLM_INPUT_BUFFER_TOO_SMALL; return std::size_t(-1); } olm::decode_base64( -- cgit v1.2.3