[mod_scgi] fix segfault (fixes #2762)

This commit is contained in:
Stefan Bühler 2016-11-02 08:13:44 +01:00
parent 33e3504bcb
commit 5e3653dc5d
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -4,6 +4,7 @@ NEWS
====
- 1.4.44
* [mod_scgi] fix segfault (fixes #2762)
- 1.4.43 - 2016-10-31
* [autobuild] remove mod_authn_gssapi dep on resolv

View File

@ -2699,7 +2699,7 @@ static handler_t scgi_check_extension(server *srv, connection *con, void *p_d, i
ct_len = buffer_string_length(ext->key);
/* check _url_ in the form "/scgi_pattern" */
if (extension->key->ptr[0] == '/') {
if (ext->key->ptr[0] == '/') {
if (ct_len <= uri_path_len
&& 0 == strncmp(con->uri.path->ptr, ext->key->ptr, ct_len)) {
extension = ext;