Commit 422bf874 authored by Anirudh Ramachandran's avatar Anirudh Ramachandran Committed by facebook-github-bot-1

Remove unnecessary resetClientHelloParsing callback in AsyncSSLSocket

Summary: Remove unnecessary resetClientHelloParsing callback which causes problems wiht
Openssl 1.0.2

Reviewed By: knekritz

Differential Revision: D2664730

fb-gh-sync-id: d1b55ae493b4c92627ad41e7bf85f1e1a777bd2b
parent badc3ebe
...@@ -977,8 +977,8 @@ AsyncSSLSocket::handleAccept() noexcept { ...@@ -977,8 +977,8 @@ AsyncSSLSocket::handleAccept() noexcept {
} }
if (server_ && parseClientHello_) { if (server_ && parseClientHello_) {
SSL_set_msg_callback_arg(ssl_, this);
SSL_set_msg_callback(ssl_, &AsyncSSLSocket::clientHelloParsingCallback); SSL_set_msg_callback(ssl_, &AsyncSSLSocket::clientHelloParsingCallback);
SSL_set_msg_callback_arg(ssl_, this);
} }
errno = 0; errno = 0;
...@@ -1575,7 +1575,6 @@ AsyncSSLSocket::clientHelloParsingCallback(int written, int version, ...@@ -1575,7 +1575,6 @@ AsyncSSLSocket::clientHelloParsingCallback(int written, int version,
return; return;
} }
if (contentType != SSL3_RT_HANDSHAKE) { if (contentType != SSL3_RT_HANDSHAKE) {
sock->resetClientHelloParsing(ssl);
return; return;
} }
if (len == 0) { if (len == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment