Fix possible segfault in decrypt function
The error is now checked at a proper time. Also, a clone of input buffer was needed for olm_decrypt_max_plaintext_length
as it destroys the input buffer.
The error is now checked at a proper time. Also, a clone of input buffer was needed for olm_decrypt_max_plaintext_length
as it destroys the input buffer.