summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp_config_keywords.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c
index e0e5166..2afefb5 100644
--- a/src/sp_config_keywords.c
+++ b/src/sp_config_keywords.c
@@ -494,6 +494,11 @@ SP_PARSE_FN(parse_ini_entry) {
494 goto err; 494 goto err;
495 } 495 }
496 496
497 if (zend_hash_find_ptr(SPCFG(ini).entries, entry->key)) {
498 sp_log_err("config", "duplicate INI key '%s' on line %zu", ZSTR_VAL(entry->key), parsed_rule->lineno);
499 goto err;
500 }
501
497 if (ro && rw) { 502 if (ro && rw) {
498 sp_log_err("config", "rule cannot be both read-write and read-only on line %zu", parsed_rule->lineno); 503 sp_log_err("config", "rule cannot be both read-write and read-only on line %zu", parsed_rule->lineno);
499 goto err; 504 goto err;