You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Kwanchai Pawutiyapong <kw...@raleigh.ibm.com> on 1998/09/22 20:25:53 UTC

config/3042: Same as PR#2534 Expected but saw , bug in http_core.c

>Number:         3042
>Category:       config
>Synopsis:       Same as PR#2534 Expected </Directory> but saw </Directory>, bug in http_core.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Sep 22 11:30:01 PDT 1998
>Last-Modified:
>Originator:     kwan@raleigh.ibm.com
>Organization:
apache
>Release:        1.3.1
>Environment:
AIX 4.3.1, IBM C++ version 3.6.4
uname -a output:
AIX bocaaix2 3 4 000060906600
>Description:
The code for string comparison in function end_nested_section() line 1093 uses 
logical compare operator (!=) instead of strcmp().  The code should look like:

if (strcmp(cmd->cmd->name, cmd->end_token)) {

instead of:

if (cmd->cmd->name != cmd->end_token) {

>How-To-Repeat:

>Fix:
In the full description area.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]