]> andersk Git - mod-vhost-ldap.git/commitdiff
Skip to the fallback vhost for hostname == NULL.
authorAnders Kaseorg <andersk@mit.edu>
Fri, 7 Mar 2008 10:07:42 +0000 (10:07 +0000)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 7 Mar 2008 10:07:42 +0000 (10:07 +0000)
git-svn-id: svn://scripts.mit.edu/server/common/oursrc/httpdmods@679 db9d59ff-b01e-0410-9b1a-cd9a8c06840f

mod_vhost_ldap.c

index 4401fa3c35e130797362d3b23697b3da166c6c10..bc9893f919f9c982d5dd39f9186afb00599c6b5c 100644 (file)
@@ -483,6 +483,8 @@ start_over:
     }
 
     hostname = r->hostname;
+    if (hostname == NULL)
+       goto null;
 
 fallback:
 
@@ -518,6 +520,8 @@ fallback:
            hostname = parent_hostname;
            goto fallback;
        }
+
+    null:
        if (conf->fallback && (is_fallback++ <= 0)) {
            ap_log_rerror(APLOG_MARK, APLOG_NOTICE|APLOG_NOERRNO, 0, r,
                          "[mod_vhost_ldap.c] translate: "
This page took 0.037237 seconds and 5 git commands to generate.