Skip to content

Commit e97c9f0

Browse files
author
fengshuaitao
committed
fix compile errors in ngx 1.9
Signed-off-by: fengshuaitao <fengshuaitao@bytedance.com>
1 parent ceedf77 commit e97c9f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ngx_http_proxy_connect_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ ngx_http_proxy_connect_address(ngx_conf_t *cf, ngx_command_t *cmd,
15091509
return NGX_CONF_ERROR;
15101510
}
15111511

1512-
address = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_local_t));
1512+
address = ngx_pcalloc(cf->pool, sizeof(ngx_http_proxy_connect_address_t));
15131513
if (address == NULL) {
15141514
return NGX_CONF_ERROR;
15151515
}
@@ -1561,10 +1561,10 @@ ngx_http_proxy_connect_bind(ngx_conf_t *cf, ngx_command_t *cmd,
15611561
ngx_int_t rc;
15621562
ngx_str_t *value;
15631563
ngx_http_complex_value_t cv;
1564-
ngx_http_upstream_local_t **plocal, *local;
1564+
ngx_http_proxy_connect_address_t **plocal, *local;
15651565
ngx_http_compile_complex_value_t ccv;
15661566

1567-
plocal = (ngx_http_upstream_local_t **) (p + cmd->offset);
1567+
plocal = (ngx_http_proxy_connect_address_t **) (p + cmd->offset);
15681568

15691569
if (*plocal != NGX_CONF_UNSET_PTR) {
15701570
return "is duplicate";
@@ -1587,7 +1587,7 @@ ngx_http_proxy_connect_bind(ngx_conf_t *cf, ngx_command_t *cmd,
15871587
return NGX_CONF_ERROR;
15881588
}
15891589

1590-
local = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_local_t));
1590+
local = ngx_pcalloc(cf->pool, sizeof(ngx_http_proxy_connect_address_t));
15911591
if (local == NULL) {
15921592
return NGX_CONF_ERROR;
15931593
}

0 commit comments

Comments
 (0)