Skip to content

Commit

Permalink
Replace deprecated OpenSSL function ERR_remove_state()
Browse files Browse the repository at this point in the history
ERR_remove_state() has been deprecated. ERR_remove_thread_state()
should be used in its place instead.

Change-Id: If0d2895cd331f94ad383e8666b84e15bfc035d3a
Reviewed-on: http://gerrit.cloudera.org:8080/6556
Reviewed-by: Todd Lipcon <[email protected]>
Tested-by: Kudu Jenkins
  • Loading branch information
smukil authored and toddlipcon committed Apr 19, 2017
1 parent d5b9894 commit 6200da9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/kudu/rpc/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ void ReactorThread::ShutdownInternal() {
task->Abort(aborted); // should also free the task.
}
scheduled_tasks_.clear();

// Remove the OpenSSL thread state.
ERR_remove_thread_state(nullptr);
}

ReactorTask::ReactorTask() {
Expand Down
1 change: 0 additions & 1 deletion src/kudu/security/tls_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ Status TlsSocket::Close() {
}

ssl_.reset();
ERR_remove_state(0);

// Close the underlying socket.
RETURN_NOT_OK(Socket::Close());
Expand Down

0 comments on commit 6200da9

Please sign in to comment.