File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ int perform_interception(modsec_rec *msr) {
267
267
extern module core_module ;
268
268
apr_socket_t * csd ;
269
269
270
+ #if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2 && AP_SERVER_PATCHLEVEL_NUMBER > 17
270
271
/* For mod_http2 used by HTTP/2 there is a virtual connection so must go through
271
272
* master to get the main connection or the drop request doesn't seem to do anything.
272
273
* For HTTP/1.1 master will not be defined so just go through normal connection.
@@ -277,7 +278,9 @@ int perform_interception(modsec_rec *msr) {
277
278
} else {
278
279
csd = ap_get_module_config (msr -> r -> connection -> conn_config , & core_module );
279
280
}
280
-
281
+ #else
282
+ csd = ap_get_module_config (msr -> r -> connection -> conn_config , & core_module );
283
+ #endif
281
284
if (csd ) {
282
285
if (apr_socket_close (csd ) == APR_SUCCESS ) {
283
286
status = HTTP_FORBIDDEN ;
You can’t perform that action at this time.
0 commit comments