Browse Source

[mod_scgi] fix segfault (fixes #2762)

personal/stbuehler/mod-csrf
Stefan Bühler 5 years ago
parent
commit
5e3653dc5d
  1. 1
      NEWS
  2. 2
      src/mod_scgi.c

1
NEWS

@ -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

2
src/mod_scgi.c

@ -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;

Loading…
Cancel
Save