Changeset 567

Show
Ignore:
Timestamp:
12/30/06 15:38:24 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r566 r567  
    112006-12-30  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/virtual_server.c (cherokee_virtual_server_configure): 
     4        Ensure that, after configuring a virtual server, its document root 
     5        property has been properly configured. A misconfiguration at this 
     6        point could make the server crash. 
    27 
    38        * cherokee/main.c (common_server_initialization): The error 
  • cherokee/trunk/cherokee/virtual_server.c

    r555 r567  
    778778        if (ret != ret_ok) return ret; 
    779779 
    780         return ret_ok; 
    781 
     780        /* Perform some sanity checks 
     781         */ 
     782        if (cherokee_buffer_is_empty (&vserver->root)) { 
     783                PRINT_MSG ("ERROR: Virtual host '%s' needs a document_root\n", name->buf); 
     784                return ret_error; 
     785        } 
     786 
     787        return ret_ok; 
     788