]> granicus.if.org Git - apache/commitdiff
Fixed a segfault that occurred during startup if a VirtualHost
authorBrian Pane <brianp@apache.org>
Tue, 25 Dec 2001 21:41:59 +0000 (21:41 +0000)
committerBrian Pane <brianp@apache.org>
Tue, 25 Dec 2001 21:41:59 +0000 (21:41 +0000)
directive had a port but no address
Reported by: Don Hughes <support@sannotes.org>

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

CHANGES
server/vhost.c

diff --git a/CHANGES b/CHANGES
index e2592acbce6e71a830f2e7009388cb748c322966..e257262ea8d3f957696197618ba18253e88a8a93 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
 Changes with Apache 2.0.30-dev
+  *) Fixed startup segfault that occurred when a VirtualHost
+     directive had a port but no address [Brian Pane]
+
   *) Allow htdbm to work with multiple DBM types [Ian Holsman]
 
   *) Win32: Made change to apr_sendfile() to return APR_ENOTIMPL
index ce1a130b868ad2750e64dcfa29d78ebc061a3d7f..9bb5677127d921698ffe5d40cc3077fb6c729458 100644 (file)
@@ -209,6 +209,9 @@ static const char *get_addresses(apr_pool_t *p, const char *w_,
     if (rv != APR_SUCCESS) {
         return "The address or port is invalid";
     }
+    if (!host) {
+        return "Missing address for VirtualHost";
+    }
     if (scope_id) {
         return "Scope ids are not supported";
     }