You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2001/02/10 00:47:32 UTC
Re: Bug discovered and fixed
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....@mclink.it>
To: <ap...@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 |
> +-------------------+----------------------+
>
>