aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-07-05 13:35:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-07-05 13:35:20 +0000
commita5ee005a27d7030693b29a75c7c8a0b67421f55a (patch)
tree65998190e9095c3d7d58030cef27ba950d086322 /src/http/ngx_http_request.c
parent802bc23574161e36aae49b10c5ebe86d691c3b4e (diff)
downloadnginx-a5ee005a27d7030693b29a75c7c8a0b67421f55a.tar.gz
nginx-a5ee005a27d7030693b29a75c7c8a0b67421f55a.zip
fix recognition of SSLv2 Client Hello Packet large than 255 bytes
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 651cda7e0..f1fab8a4f 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -555,7 +555,7 @@ ngx_http_ssl_handshake(ngx_event_t *rev)
}
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]);