]> git.kaiwu.me - nginx.git/commitdiff
Upstream: reserved padding in state structures
authorDmitry Plotnikov <d.plotnikov@f5.com>
Fri, 7 Aug 2026 22:20:38 +0000 (22:20 +0000)
committerdplotnikov-f5 <67346902+dplotnikov-f5@users.noreply.github.com>
Tue, 11 Aug 2026 18:09:34 +0000 (11:09 -0700)
src/http/ngx_http_upstream.h
src/stream/ngx_stream_upstream.h

index f07df42cf46b80d3016a92af00d99b6be4afa751..74d55ef1c54707b7ae5728b3f06792ddcda95f7e 100644 (file)
@@ -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;
 
 
index 89fff08c3837bb024808e15080734ba1a64ea644..0e6aad62367f27d9b53e7f56515ecc8a008d96d4 100644 (file)
@@ -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;