Klaus Demo nginx / f181924
Geo: ensure that default entry is always present. If 0.0.0.0/32 entry was present and there was no explicit "default", we failed to add an empty string as a default value. Ruslan Ermilov 9 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
452452 ngx_destroy_pool(ctx.temp_pool);
453453 ngx_destroy_pool(pool);
454454
455 if (ngx_radix32tree_find(ctx.tree, 0) != NGX_RADIX_NO_VALUE) {
456 return rv;
457 }
458
459455 if (ngx_radix32tree_insert(ctx.tree, 0, 0,
460456 (uintptr_t) &ngx_http_variable_null_value)
461457 == NGX_ERROR)
462458 {
463459 return NGX_CONF_ERROR;
464460 }
461
462 /* NGX_BUSY is okay (default was set explicitly) */
465463 }
466464
467465 return rv;