Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2138 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
80be71bd43
commit
2cf3927ef5
1
NEWS
1
NEWS
|
@ -10,6 +10,7 @@ NEWS
|
|||
* Update documentation for #1587
|
||||
* Fix #285 again: read error after SSL_shutdown (thx marton.illes@balabit.com) and clear the error queue before some other calls
|
||||
* Fix mod_magnet: enable "request.method" and "request.protocol" in lighty.env (#1308)
|
||||
* Fix segfault for appending matched parts if there was no regex matching (just give empty strings) (#1601)
|
||||
|
||||
- 1.4.19 - 2008-03-10
|
||||
|
||||
|
|
|
@ -529,7 +529,7 @@ int config_check_cond(server *srv, connection *con, data_config *dc) {
|
|||
int config_append_cond_match_buffer(connection *con, data_config *dc, buffer *buf, int n)
|
||||
{
|
||||
cond_cache_t *cache = &con->cond_cache[dc->context_ndx];
|
||||
if (n > cache->patterncount) {
|
||||
if (n >= cache->patterncount) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue