]> granicus.if.org Git - apache/commit
Fix a segfault when a numeric host (e.g., "Host: 123") was specified.
authorJeff Trawick <trawick@apache.org>
Mon, 27 Aug 2001 19:51:34 +0000 (19:51 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 27 Aug 2001 19:51:34 +0000 (19:51 +0000)
commitd8af1a375bc654aa41f8fc8cf2ca6cd66c7fc265
tree3ae4f3087042b303b0cd7a036ee459b669ef3e40
parent81be2513025a8cff142a8373a7a5d1692111932c
Fix a segfault when a numeric host (e.g., "Host: 123") was specified.

apr_parse_addr_port() assumes that if there is just a number it must
be a port, but here we need to assume that it is a host.

todo: pass a flag into apr_parse_addr_port()?  unclear whether or
      not that is cleaner overall

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90734 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/vhost.c