diff --git a/ChangeLog b/ChangeLog index 884fafa..86c8f6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 05/31/2024 - refactor NGINX port extraction so it works with NGINX >= 1.27.0; closes #49; thanks @anpin +- add PCRE2_CFLAGS to cache/server object linking 03/11/2024 - release 1.6.1 diff --git a/src/cfg_int.h b/src/cfg_int.h index dae1899..040df1a 100644 --- a/src/cfg_int.h +++ b/src/cfg_int.h @@ -314,8 +314,7 @@ typedef struct oauth2_cfg_openidc_t { dst = type##_init(log); #define _OAUTH2_CFG_CTX_CLONE_END \ - end: \ - return dst; \ + end : return dst; \ } #define _OAUTH2_CFG_CTX_FREE_START(type) \ diff --git a/src/server/nginx.c b/src/server/nginx.c index 917e552..7c32dfa 100644 --- a/src/server/nginx.c +++ b/src/server/nginx.c @@ -100,7 +100,8 @@ static void _oauth2_nginx_host_copy(oauth2_nginx_request_context_t *ctx) static void _oauth2_nginx_port_copy(oauth2_nginx_request_context_t *ctx) { in_port_t port = ngx_inet_get_port(ctx->r->connection->sockaddr); - oauth2_http_request_port_set(ctx->log, ctx->request, (unsigned long)port); + oauth2_http_request_port_set(ctx->log, ctx->request, + (unsigned long)port); } static void _oauth2_nginx_path_copy(oauth2_nginx_request_context_t *ctx)