If the geo block parser has failed, doing more things is pointless.
*cf = save;
+ if (rv != NGX_CONF_OK) {
+ goto failed;
+ }
+
geo->proxies = ctx.proxies;
geo->proxy_recursive = ctx.proxy_recursive;
ngx_destroy_pool(ctx.temp_pool);
ngx_destroy_pool(pool);
- return rv;
+ return NGX_CONF_OK;
failed:
*cf = save;
+ if (rv != NGX_CONF_OK) {
+ goto failed;
+ }
+
if (ctx.ranges) {
if (ctx.high.low && !ctx.binary_include) {
ngx_destroy_pool(ctx.temp_pool);
ngx_destroy_pool(pool);
- return rv;
+ return NGX_CONF_OK;
failed: