summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--misc/GNUmakefile2
-rw-r--r--src/http/ngx_http_request.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/GNUmakefile b/misc/GNUmakefile
index 4e5ff26ff..9ad20cfde 100644
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -5,7 +5,7 @@ NGINX = nginx-$(VER)
TEMP = tmp
OBJS = objs.msvc8
-OPENSSL = openssl-0.9.8n
+OPENSSL = openssl-0.9.8q
ZLIB = zlib-1.2.3
PCRE = pcre-7.9
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]);