From 2c28c5909646013105a220136589b6bfbfdb739f Mon Sep 17 00:00:00 2001 From: samuel40791765 Date: Mon, 16 Oct 2023 18:52:22 +0000 Subject: [PATCH] fix usage of BIO_get_mem_data --- sql-common/oci/ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-common/oci/ssl.cc b/sql-common/oci/ssl.cc index b0e813b58e2c..5a7c666ebfb4 100644 --- a/sql-common/oci/ssl.cc +++ b/sql-common/oci/ssl.cc @@ -51,7 +51,7 @@ std::string base64_encode(const void *binary, size_t length) { BIO_push(b64.get(), sink); BIO_write(b64.get(), binary, static_cast(length)); if (BIO_flush(b64.get()) != 1) return {}; - const char *encoded; + char *encoded; const size_t result_length = BIO_get_mem_data(sink, &encoded); return {encoded, result_length}; }