Changeset 1812

Show
Ignore:
Timestamp:
08/14/08 12:56:06 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r1810 r1812  
    112008-08-14  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/server.c (add_vserver): Adds a sanity check. It makes 
     4        sure that the virtual server number can be actually converted into 
     5        an integer number. 
    26 
    37        * cherokee/server.c: Clean up. Removes an unnecessary check that 
  • cherokee/trunk/cherokee/server.c

    r1810 r1812  
    12911291        cherokee_server_t         *srv  = SRV(data); 
    12921292 
    1293         prio = atoi(conf->key.buf); 
     1293        prio = atoi (conf->key.buf); 
     1294        if (prio <= 0) { 
     1295                PRINT_ERROR ("Invalid Virtual Server entry '%s'\n", conf->key.buf); 
     1296                return ret_error; 
     1297        } 
     1298 
    12941299        TRACE (ENTRIES, "Adding vserver prio=%d\n", prio); 
    12951300