aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_ssl_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2022-10-20 16:41:36 +0400
committerSergey Kandaurov <pluknet@nginx.com>2022-10-20 16:41:36 +0400
commit3123fac3e764b4706881ffcb8f8b554c1628c5e0 (patch)
tree0a8345c637b00eae13b983af54d9ab51426a6c72 /src/stream/ngx_stream_ssl_module.c
parent3cd06a3a9a1f815cbd5391211947d7aed4feb061 (diff)
parent09d5305592c3ff8ff30e54dc3e9ce3dbac72cf59 (diff)
downloadnginx-3123fac3e764b4706881ffcb8f8b554c1628c5e0.tar.gz
nginx-3123fac3e764b4706881ffcb8f8b554c1628c5e0.zip
Merged with the default branch.
Diffstat (limited to 'src/stream/ngx_stream_ssl_module.c')
-rw-r--r--src/stream/ngx_stream_ssl_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_ssl_module.c b/src/stream/ngx_stream_ssl_module.c
index 34fb8e8bd..4b98f2586 100644
--- a/src/stream/ngx_stream_ssl_module.c
+++ b/src/stream/ngx_stream_ssl_module.c
@@ -1073,7 +1073,7 @@ ngx_stream_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
len++;
}
- if (len == 0) {
+ if (len == 0 || j == value[i].len) {
goto invalid;
}