Skip to content

Commit

Permalink
Removed more calls to ERR_peek_last_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
esabol committed Dec 1, 2019
1 parent d2c0bbb commit c00b207
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions libgearman/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,6 @@ gearman_return_t gearman_connection_st::flush()
case SSL_ERROR_SSL:
default:
{
if (ERR_peek_last_error())
{
ssl_error = ERR_peek_last_error();
}
char errorString[SSL_ERROR_SIZE]= { 0 };
ERR_error_string_n(ssl_error, errorString, sizeof(errorString));
close_socket();
Expand Down Expand Up @@ -1192,10 +1188,6 @@ size_t gearman_connection_st::recv_socket(void *data, size_t data_size, gearman_
case SSL_ERROR_SSL:
default:
{
if (ERR_peek_last_error())
{
ssl_error = ERR_peek_last_error();
}
char errorString[SSL_ERROR_SIZE]= { 0 };
ERR_error_string_n(ssl_error, errorString, sizeof(errorString));
close_socket();
Expand Down
8 changes: 0 additions & 8 deletions util/instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,6 @@ bool Instance::run()
case SSL_ERROR_SSL:
default:
{
if (ERR_peek_last_error())
{
ssl_error = ERR_peek_last_error();
}
char ssl_error_buffer[SSL_ERROR_SIZE]= { 0 };
ERR_error_string_n(ssl_error, ssl_error_buffer, sizeof(ssl_error_buffer));
_last_error= ssl_error_buffer;
Expand Down Expand Up @@ -421,10 +417,6 @@ bool Instance::run()
case SSL_ERROR_SSL:
default:
{
if (ERR_peek_last_error())
{
ssl_error = ERR_peek_last_error();
}
char ssl_error_buffer[SSL_ERROR_SIZE]= { 0 };
ERR_error_string_n(ssl_error, ssl_error_buffer, sizeof(ssl_error_buffer));
_last_error= ssl_error_buffer;
Expand Down

0 comments on commit c00b207

Please sign in to comment.