Skip to content

Commit

Permalink
fix: fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Jan 20, 2025
1 parent 5805b67 commit 7fea5ea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/openresty/patches/nginx-1.27.1-10-fix-preread-bug.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/bundle/nginx-1.27.1/src/stream/ngx_stream_ssl_preread_module.c b/bundle/nginx-1.27.1/src/stream/ngx_stream_ssl_preread_module.c
index ed45c6f..7e65d65 100644
--- a/bundle/nginx-1.27.1/src/stream/ngx_stream_ssl_preread_module.c
+++ b/bundle/nginx-1.27.1/src/stream/ngx_stream_ssl_preread_module.c
@@ -190,7 +190,7 @@ ngx_stream_ssl_preread_handler(ngx_stream_session_t *s)
}

if (rc == NGX_OK) {
- return ngx_stream_ssl_preread_servername(s, &ctx->host);
+ rc = ngx_stream_ssl_preread_servername(s, &ctx->host);
}

if (rc != NGX_AGAIN) {

0 comments on commit 7fea5ea

Please sign in to comment.