@@ -711,7 +711,11 @@ static int msre_op_validateHash_param_init(msre_rule *rule, char **error_msg) {
711711
712712 #ifdef WITH_PCRE_STUDY
713713 #ifdef WITH_PCRE_JIT
714+ #ifdef WITH_PCRE2
715+ rc = regex -> jit_compile_rc ;
716+ #else
714717 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
718+ #endif
715719 if ((rc != 0 ) || (jit != 1 )) {
716720 * error_msg = apr_psprintf (rule -> ruleset -> mp ,
717721 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -808,7 +812,11 @@ static int msre_op_validateHash_execute(modsec_rec *msr, msre_rule *rule, msre_v
808812 #ifdef WITH_PCRE_STUDY
809813 #ifdef WITH_PCRE_JIT
810814 if (msr -> txcfg -> debuglog_level >= 4 ) {
815+ #ifdef WITH_PCRE2
816+ rc = regex -> jit_compile_rc ;
817+ #else
811818 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
819+ #endif
812820 if ((rc != 0 ) || (jit != 1 )) {
813821 * error_msg = apr_psprintf (msr -> mp ,
814822 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -973,7 +981,11 @@ static int msre_op_rx_param_init(msre_rule *rule, char **error_msg) {
973981
974982 #ifdef WITH_PCRE_STUDY
975983 #ifdef WITH_PCRE_JIT
984+ #ifdef WITH_PCRE2
985+ rc = regex -> jit_compile_rc ;
986+ #else
976987 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
988+ #endif
977989 if ((rc != 0 ) || (jit != 1 )) {
978990 * error_msg = apr_psprintf (rule -> ruleset -> mp ,
979991 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -1060,7 +1072,11 @@ static int msre_op_rx_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, c
10601072 #ifdef WITH_PCRE_STUDY
10611073 #ifdef WITH_PCRE_JIT
10621074 if (msr -> txcfg -> debuglog_level >= 4 ) {
1075+ #ifdef WITH_PCRE2
1076+ rc = regex -> jit_compile_rc ;
1077+ #else
10631078 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
1079+ #endif
10641080 if ((rc != 0 ) || (jit != 1 )) {
10651081 * error_msg = apr_psprintf (msr -> mp ,
10661082 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -2842,7 +2858,11 @@ static int msre_op_verifyCC_execute(modsec_rec *msr, msre_rule *rule, msre_var *
28422858 #ifdef WITH_PCRE_STUDY
28432859 #ifdef WITH_PCRE_JIT
28442860 if (msr -> txcfg -> debuglog_level >= 4 ) {
2861+ #ifdef WITH_PCRE2
2862+ rc = regex -> jit_compile_rc ;
2863+ #else
28452864 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
2865+ #endif
28462866 if ((rc != 0 ) || (jit != 1 )) {
28472867 * error_msg = apr_psprintf (msr -> mp ,
28482868 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -3169,7 +3189,11 @@ static int msre_op_verifyCPF_execute(modsec_rec *msr, msre_rule *rule, msre_var
31693189 #ifdef WITH_PCRE_STUDY
31703190 #ifdef WITH_PCRE_JIT
31713191 if (msr -> txcfg -> debuglog_level >= 4 ) {
3192+ #ifdef WITH_PCRE2
3193+ rc = regex -> jit_compile_rc ;
3194+ #else
31723195 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
3196+ #endif
31733197 if ((rc != 0 ) || (jit != 1 )) {
31743198 * error_msg = apr_psprintf (msr -> mp ,
31753199 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
@@ -3479,7 +3503,11 @@ static int msre_op_verifySSN_execute(modsec_rec *msr, msre_rule *rule, msre_var
34793503 #ifdef WITH_PCRE_STUDY
34803504 #ifdef WITH_PCRE_JIT
34813505 if (msr -> txcfg -> debuglog_level >= 4 ) {
3506+ #ifdef WITH_PCRE2
3507+ rc = regex -> jit_compile_rc ;
3508+ #else
34823509 rc = msc_fullinfo (regex , PCRE_INFO_JIT , & jit );
3510+ #endif
34833511 if ((rc != 0 ) || (jit != 1 )) {
34843512 * error_msg = apr_psprintf (msr -> mp ,
34853513 "Rule %pp [id \"%s\"][file \"%s\"][line \"%d\"] - "
0 commit comments