mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix OpenSSL 1.0 memleak when using RSA.
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include <openssl/bio.h>
|
||||
#include "WFTaskError.h"
|
||||
#include "WFTaskFactory.h"
|
||||
#include "MySQLMessage.h"
|
||||
#include "StringUtil.h"
|
||||
#include "WFGlobal.h"
|
||||
#include "mysql_types.h"
|
||||
|
||||
using namespace protocol;
|
||||
@@ -212,6 +212,9 @@ CommMessageOut *ComplexMySQLTask::message_out()
|
||||
auth_switch_req->set_password(password_);
|
||||
auth_switch_req->set_auth_plugin_name(std::move(conn->str));
|
||||
auth_switch_req->set_seed(conn->seed);
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
WFGlobal::get_ssl_client_ctx();
|
||||
#endif
|
||||
break;
|
||||
|
||||
case ST_SHA256_PUBLIC_KEY_REQUEST:
|
||||
|
||||
Reference in New Issue
Block a user