File apache2-CVE-2021-34798.patch of Package apache2.22344
--- a/server/scoreboard.c 2021/09/07 16:01:43 1893050
+++ b/server/scoreboard.c 2021/09/07 16:05:31 1893051
@@ -388,7 +388,7 @@ AP_DECLARE(void) ap_increment_counts(ap_
if (pfn_ap_logio_get_last_bytes != NULL) {
bytes = pfn_ap_logio_get_last_bytes(r->connection);
}
- else if (r->method_number == M_GET && r->method[0] == 'H') {
+ else if (r->method_number == M_GET && r->method && r->method[0] == 'H') {
bytes = 0;
}
else {