>Number:         1151
>Category:       general
>Synopsis:       restart_time is misdeclared, can of worms follow.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Sep 19 11:30:01 1997
>Originator:     Hyde
>Organization:
apache
>Release:        1.3a1
>Environment:
NT
>Description:
in httpd.h restart_time is missing an extern declaration.  It's only user,
mod_status, gets a private uninitialized copy.  
>How-To-Repeat:
Load mod_status via mod_dll, fetch the status page and notice that the
start time reported is unix time zero.  Then notice that httpd.h doesn't
have an extern on the decl. of restart_time.
>Fix:
Fixing this exposes a design
flaw in MODULE_VAR_EXPORT.  mod_status wants MODULE_VAR_EXPORT to be do a
dllimport, when it loads httpd.h, but it wants it to do dllexport when it
defines it's module variable
>Audit-Trail:
>Unformatted:


Reply via email to