Fix build error if -Werror=format-security is presented

This commit is contained in:
Ervin Hegedus 2024-09-03 21:49:43 +02:00
parent b5179a110a
commit cddd9a7eb5
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -472,8 +472,8 @@ char *update_rule_target_ex(modsec_rec *msr, msre_ruleset *ruleset, msre_rule *r
end:
if (my_error_msg) {
if (msr) msr_log(msr, 9, my_error_msg);
else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, my_error_msg);
if (msr) msr_log(msr, 9, "%s", my_error_msg);
else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, "%s", my_error_msg);
}
if (target_list != NULL) free(target_list);
if (replace != NULL) free(replace);