fix recognition of SSLv2 Client Hello Packet large than 255 bytes
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 651cda7..f1fab8a 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c
@@ -555,7 +555,7 @@ } if (n == 1) { - if (buf[0] == 0x80 /* SSLv2 */ || buf[0] == 0x16 /* SSLv3/TLSv1 */) { + if (buf[0] & 0x80 /* SSLv2 */ || buf[0] == 0x16 /* SSLv3/TLSv1 */) { ngx_log_debug1(NGX_LOG_DEBUG_HTTP, rev->log, 0, "https ssl handshake: 0x%02Xd", buf[0]);