summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2023-02-02 09:49:28 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2023-02-02 04:57:58 -0500
commit6b18de011dec16d99ae37277fd9852ccf515d63e (patch)
tree6f510db244620c1e26288c8db8a729a83d2a58fc
parent320a8f3ecf9ccb13bde78d1539937764dfcbbe19 (diff)
downloadrabbitmq-c-6b18de011dec16d99ae37277fd9852ccf515d63e.tar.gz
fix: correct amqp_ssl_socket_set_key_buffer value
Make amqp_ssl_socket_set_key_buffer return AMQP_STATUS_OK on success. It currently returns the status of the underlying OpenSSL call, which isn't correct. Fixes: alanxz/rabbitmq-c#723 Signed-off-by: GitHub <noreply@github.com>
-rw-r--r--librabbitmq/amqp_openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c
index a35a514..6b9d4a9 100644
--- a/librabbitmq/amqp_openssl.c
+++ b/librabbitmq/amqp_openssl.c
@@ -451,6 +451,7 @@ int amqp_ssl_socket_set_key_buffer(amqp_socket_t *base, const char *cert,
if (1 != status) {
goto error;
}
+ status = AMQP_STATUS_OK;
exit:
BIO_vfree(buf);
RSA_free(rsa);