httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Bug discovered and fixed
Date Fri, 09 Feb 2001 23:47:32 GMT
This bug was uncovered and corrected in the Apache 1.3.17 release [the error
you cited was specific to 1.3.14.]  Thanks for the observation, correction
and interest in the Apache webserver project!

----- Original Message ----- 
From: "Claudio Cicali" <c.cicali@mclink.it>
To: <apache@apache.org>
Sent: Friday, December 01, 2000 3:47 AM
Subject: Bug discovered and fixed


> Hello,
> 
> Im working on a module for Apache for Windows NT and, while
> trying to have the job done, I discovered a (little) bug in the
> source file util_win32.c.
> 
> Bug description:
> I couldn't get any error code while apache refused to start itself
> up, being unable to load my module.
> 
> Bug discover and trapped !
> The problem is in the function ap_os_dso_error(). It simply lacks
> of the inizialization of the variable "len".
> 
> So, where I read:
> 
>      nErrorCode = GetLastError();
>      len = ap_snprintf(errstr, sizeof(errstr) - len, "(%d) ", nErrorCode);
> 
> I'll read:
> 
>      nErrorCode = GetLastError();
>      len = 0;
>      len = ap_snprintf(errstr, sizeof(errstr) - len, "(%d) ", nErrorCode);
> 
> In this way the error is correctly displayed.
> 
> 
> Bye !
> 
> 
> +-------------------+----------------------+
> |  Claudio Cicali   | http://www.flexer.it |
> |c.cicali@mclink.it |    Nerd Made Good    |
> +-------------------+----------------------+
> 
> 


Mime
View raw message