Merge pull request #116 from leev/auto-reload-segfault

Fix #90: segfault on bad auto reload value
This commit is contained in:
Lee 2023-06-14 10:44:05 -05:00 committed by GitHub
commit a607a41a81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -451,7 +451,7 @@ ngx_http_geoip2_parse_config(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
if (interval == (time_t) NGX_ERROR) { if (interval == (time_t) NGX_ERROR) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"invalid interval for auto_reload \"%V\"", "invalid interval for auto_reload \"%V\"",
value[1]); &value[1]);
return NGX_CONF_ERROR; return NGX_CONF_ERROR;
} }