mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
519 B
C
14 lines
519 B
C
7 years ago
|
diff --git a/src/stream/ngx_stream_ssl_preread_module.c b/src/stream/ngx_stream_ssl_preread_module.c
|
||
|
index e3d11fd9..3717b5fe 100644
|
||
|
--- a/src/stream/ngx_stream_ssl_preread_module.c
|
||
|
+++ b/src/stream/ngx_stream_ssl_preread_module.c
|
||
|
@@ -159,7 +159,7 @@ ngx_stream_ssl_preread_handler(ngx_stream_session_t *s)
|
||
|
|
||
|
rc = ngx_stream_ssl_preread_parse_record(ctx, p, p + len);
|
||
|
if (rc != NGX_AGAIN) {
|
||
|
- return rc;
|
||
|
+ return rc == NGX_OK ? NGX_DECLINED : rc;
|
||
|
}
|
||
|
|
||
|
p += len;
|