From 7ac8bdf5bfca9004e1127abee2b588b5db770bdb Mon Sep 17 00:00:00 2001 From: Dmitry Plotnikov Date: Fri, 7 Aug 2026 22:20:38 +0000 Subject: [PATCH] Upstream: reserved padding in state structures --- src/http/ngx_http_upstream.h | 3 +++ src/stream/ngx_stream_upstream.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index f07df42cf..74d55ef1c 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -71,6 +71,9 @@ typedef struct { off_t bytes_sent; ngx_str_t *peer; + + NGX_COMPAT_BEGIN(2) + NGX_COMPAT_END } ngx_http_upstream_state_t; diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h index 89fff08c3..0e6aad623 100644 --- a/src/stream/ngx_stream_upstream.h +++ b/src/stream/ngx_stream_upstream.h @@ -101,6 +101,9 @@ typedef struct { off_t bytes_received; ngx_str_t *peer; + + NGX_COMPAT_BEGIN(2) + NGX_COMPAT_END } ngx_stream_upstream_state_t;