[mod_dirlisting] fix memory leak if pcre fails
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2941 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.35
parent
0aaf939e5e
commit
d59c910d6a
1
NEWS
1
NEWS
|
@ -7,6 +7,7 @@ NEWS
|
|||
* [network/ssl] fix build error if TLSEXT is disabled
|
||||
* [mod_fastcgi] fix use after free (only triggered if fastcgi debug is active)
|
||||
* [mod_rrdtool] fix invalid read (string not null terminated)
|
||||
* [mod_dirlisting] fix memory leak if pcre fails
|
||||
|
||||
- 1.4.34
|
||||
* [mod_auth] explicitly link ssl for SHA1 (fixes #2517)
|
||||
|
|
|
@ -730,7 +730,11 @@ static int http_list_directory(server *srv, connection *con, plugin_data *p, buf
|
|||
log_error_write(srv, __FILE__, __LINE__, "sd",
|
||||
"execution error while matching:", n);
|
||||
|
||||
return -1;
|
||||
/* aborting would require a lot of manual cleanup here.
|
||||
* skip instead (to not leak names that break pcre matching)
|
||||
*/
|
||||
exclude_match = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue