source: trunk/server/common/patches/httpd-2.2.x-CVE-2012-0031.patch @ 2134

Last change on this file since 2134 was 2134, checked in by achernya, 10 years ago
Patch httpd against some security vulnerabilities.
File size: 936 bytes
  • httpd/httpd/branches/2.2.x/server/scoreboard.c

     
    4242AP_DECLARE_DATA int ap_extended_status = 0;
    4343AP_DECLARE_DATA int ap_mod_status_reqtail = 0;
    4444
     45static ap_scoreboard_e scoreboard_type;
     46
    4547#if APR_HAS_SHARED_MEMORY
    4648
    4749#include "apr_shm.h"
     
    250252    if (ap_scoreboard_image == NULL) {
    251253        return APR_SUCCESS;
    252254    }
    253     if (ap_scoreboard_image->global->sb_type == SB_SHARED) {
     255    if (scoreboard_type == SB_SHARED) {
    254256        ap_cleanup_shared_mem(NULL);
    255257    }
    256258    else {
     
    312314        ap_init_scoreboard(sb_mem);
    313315    }
    314316
    315     ap_scoreboard_image->global->sb_type = sb_type;
     317    ap_scoreboard_image->global->sb_type = scoreboard_type = sb_type;
    316318    ap_scoreboard_image->global->running_generation = 0;
    317319    ap_scoreboard_image->global->restart_time = apr_time_now();
    318320
Note: See TracBrowser for help on using the repository browser.