mirror of
https://github.com/nginx/nginx.git
synced 2024-12-27 01:11:13 -06:00
Geo: properly initialize ngx_cidr_t when dealing with "default".
This commit is contained in:
parent
3d87688bc6
commit
98129de874
@ -1037,7 +1037,7 @@ ngx_http_geo_cidr(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
||||
#endif
|
||||
|
||||
if (ngx_strcmp(value[0].data, "default") == 0) {
|
||||
/* cidr.family = AF_INET; */
|
||||
cidr.family = AF_INET;
|
||||
cidr.u.in.addr = 0;
|
||||
cidr.u.in.mask = 0;
|
||||
net = &value[0];
|
||||
|
Loading…
Reference in New Issue
Block a user