summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-12-14 19:29:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-12-14 19:29:57 +0000
commitad070b55b8ebb8d0ab53e33b5fd33859b20f2323 (patch)
tree047049a84e3882b8aa57a610d57156b133805502 /src/http/ngx_http_request.c
parent217f8cea3a8434e009f843b7043c8e102d8527ac (diff)
downloadnginx-ad070b55b8ebb8d0ab53e33b5fd33859b20f2323.tar.gz
nginx-ad070b55b8ebb8d0ab53e33b5fd33859b20f2323.tar.bz2
SSL related fixes:
*) merge r3675: fix recognition of SSLv2 Client Hello Packet large than 255 bytes *) upgrade OpenSSL to 0.8.9q in nginx/Windows
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 7a18980c4..08b7d4678 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -551,7 +551,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]);