www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bradford <jus...@ukans.edu>
Subject general/2400: The creation of allowed_globals in http_main.c is incorrect
Date Wed, 10 Jun 1998 04:52:57 GMT

>Number:         2400
>Category:       general
>Synopsis:       The creation of allowed_globals in http_main.c is incorrect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jun  9 23:10:01 PDT 1998
>Last-Modified:
>Originator:     justin@ukans.edu
>Organization:
apache
>Release:        1.3.0
>Environment:
na
>Description:
In http_main.c:

 /*
  * Globals common to main and worker threads. This structure is not
  * used by the parent process.
  */

 typedef struct globals_s {
 #ifdef UNGRACEFUL_RESTART
     HANDLE thread_exit_event;
 #else
     int exit_now;
 #endif
     semaphore *jobsemaphore;
     joblist *jobhead;
     joblist *jobtail;
     mutex *jobmutex;
     int jobcount;
 } globals;

 globals allowed_globals =
 {0, NULL, NULL, NULL, 0};

Shouldn't allowed_globals be defined as:
 globals allowed_globals =
 {0, NULL, NULL, NULL, NULL, 0};

>How-To-Repeat:
na
>Fix:
see above
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message