Fix #90: segfault on bad auto reload value

This commit is contained in:
Lee Valentine 2023-06-14 10:17:41 -05:00
parent cbaa35461c
commit df09bbb10a

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;
} }