Changeset 2143

Show
Ignore:
Timestamp:
04/05/2008 08:00:21 PM (5 months ago)
Author:
stbuehler
Message:

Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628)

Location:
branches/lighttpd-1.4.x
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/NEWS

    r2142 r2143  
    1212  * Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308) 
    1313  * Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601) 
     14  * Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" (#1628) 
    1415 
    1516- 1.4.19 - 2008-03-10 
  • branches/lighttpd-1.4.x/src/mod_fastcgi.c

    r2119 r2143  
    25452545 
    25462546                                        if (HANDLER_ERROR != stat_cache_get_entry(srv, con, ds->value, &sce)) { 
    2547                                                 data_string *dcls = data_string_init(); 
     2547                                                data_string *dcls; 
     2548                                                if (NULL == (dcls = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) { 
     2549                                                        dcls = data_response_init(); 
     2550                                                } 
    25482551                                                /* found */ 
    25492552                                                http_chunk_append_file(srv, con, ds->value, 0, sce->st.st_size);