Fixed buffer selection for error output

If messages could not be decrypted an error was previously printed to
the current buffer and not to the buffer in which the error actually
occurred. This commit will fix this.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>