Skip to content

Commit

Permalink
Check for closed socket in amqp_ssl_socket_send().
Browse files Browse the repository at this point in the history
  • Loading branch information
alanxz committed Jan 7, 2015
1 parent 9cbc6cd commit 656f833
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions librabbitmq/amqp_openssl.c
Expand Up @@ -81,6 +81,10 @@ amqp_ssl_socket_send(void *base,
{
struct amqp_ssl_socket_t *self = (struct amqp_ssl_socket_t *)base;
ssize_t res;
if (-1 == self->sockfd) {
return AMQP_STATUS_SOCKET_CLOSED;
}

ERR_clear_error();
self->internal_error = 0;

Expand Down

0 comments on commit 656f833

Please sign in to comment.