Changeset 2138

Show
Ignore:
Timestamp:
03/26/2008 02:23:05 PM (5 months ago)
Author:
stbuehler
Message:

Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)

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

Legend:

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

    r2137 r2138  
    1111  * Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls 
    1212  * Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308) 
     13  * Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601) 
    1314 
    1415- 1.4.19 - 2008-03-10 
  • branches/lighttpd-1.4.x/src/configfile-glue.c

    r2112 r2138  
    530530{ 
    531531        cond_cache_t *cache = &con->cond_cache[dc->context_ndx]; 
    532         if (n > cache->patterncount) { 
     532        if (n >= cache->patterncount) { 
    533533                return 0; 
    534534        }