]> granicus.if.org Git - apache/commitdiff
add a comment about the need to check for a host after returning
authorJeff Trawick <trawick@apache.org>
Tue, 25 Dec 2001 21:46:10 +0000 (21:46 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 25 Dec 2001 21:46:10 +0000 (21:46 +0000)
from apr_parse_addr_port()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92600 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index 9bb5677127d921698ffe5d40cc3077fb6c729458..23217e324b83dfa1730f7644face2ab998437552 100644 (file)
@@ -206,6 +206,9 @@ static const char *get_addresses(apr_pool_t *p, const char *w_,
         }
     }
     rv = apr_parse_addr_port(&host, &scope_id, &port, w, p);
+    /* If the string is "80", apr_parse_addr_port() will be happy and set
+     * host to NULL and port to 80, so watch out for that.
+     */
     if (rv != APR_SUCCESS) {
         return "The address or port is invalid";
     }