]> andersk Git - mod-vhost-ldap.git/commitdiff
Fix code in fixups
authorOndřej Surý <ondrej@sury.org>
Mon, 21 Jun 2010 15:03:40 +0000 (17:03 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 21 Jun 2010 15:03:49 +0000 (17:03 +0200)
mod_vhost_ldap.c

index e62219128e490e2c0c698f13098d64bb6d3005e4..3ac5b4fd93f81303437fe18f96c93ad57d1da9ad 100644 (file)
@@ -716,12 +716,13 @@ static ap_unix_identity_t *mod_vhost_ldap_get_suexec_id_doer(const request_rec *
 static int mod_vhost_ldap_fixups(request_rec *r)
 {
     char *docroot = 
-      apr_table_get(r->notes, "vhost-document-root");
+        apr_table_get(r->notes, "vhost-document-root");
 
-    if (docroot != NULL)
-      return set_document_root(r, );
-    else
-      return DECLINED;
+    /* If we don't have DocumentRoot in notes then do nothing */
+    if (docroot == NULL)
+        return DECLINED;
+
+    return set_document_root(r, docroot);
 }
 
 static void
This page took 0.061198 seconds and 5 git commands to generate.