www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Cruse <r...@estara.com>
Subject general/9187: fix_hostname in vhost.c doesn't handle DNS names that end with '.'
Date Wed, 19 Dec 2001 01:18:57 GMT

>Number:         9187
>Category:       general
>Synopsis:       fix_hostname in vhost.c doesn't handle DNS names that end with '.'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec 18 17:20:00 PST 2001
>Originator:     ryan@estara.com
>Release:        2.0.28
Redhat 7.2 Linux apache.estara.com. 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
dst is incremented skipping the null at the end of the hostname and keep going til it fails
on a .. or / or hits a null not preceeded by a '.'. 

Fix included.
GET / HTTP/1.1
host: my.host.com.

[root@apache server]# diff vhost.c vhost.c.orig
<                 if (*(dst+1) == '.')
>                 dst++;
>                 if (*dst == '.')
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database 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!     ]

View raw message