summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>2015-05-21 14:20:48 +0200
committerAlan Antonuk <alan.antonuk@gmail.com>2015-05-21 10:08:22 -0700
commited363ad6db549e9d3fa57f7ca761032eecb2a1a1 (patch)
tree64cbe203b5608133578092eb58b595f8b4a90f4b
parentda49600a13e47e6922ef58ad704f3c6a94fdffeb (diff)
downloadrabbitmq-c-pr271.tar.gz
amqp_openssl: *_ssl_send() should return number of bytes sentpr271
Function amqp_ssl_socket_send() should return the number of bytes written. Retruning AMQP_STATUS_OK on success will cause all amqp_socket_send() with SSL socket implementation to behave incorrectly.
-rw-r--r--librabbitmq/amqp_openssl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c
index de65185..c3c6294 100644
--- a/librabbitmq/amqp_openssl.c
+++ b/librabbitmq/amqp_openssl.c
@@ -113,7 +113,6 @@ amqp_ssl_socket_send(void *base,
}
} else {
self->internal_error = 0;
- res = AMQP_STATUS_OK;
}
return res;