diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-05-02 09:02:23 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-05-02 09:02:23 +0000 |
commit | 75c3272a1caf96c3a0e9e1384e5219755588cc0c (patch) | |
tree | 1ca7264b4b311b39a39a865291ed7590b50cf62d /src | |
parent | dbdeafe6a0efed5154a207bcc0431620bed6ac1d (diff) | |
download | nginx-75c3272a1caf96c3a0e9e1384e5219755588cc0c.tar.gz nginx-75c3272a1caf96c3a0e9e1384e5219755588cc0c.zip |
fix segfault introduced in r1190
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_variables.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 5aac76b76..0bd6b7ec6 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -1269,12 +1269,13 @@ ngx_http_variables_init_vars(ngx_conf_t *cf) for (n = 0; n < cmcf->variables_keys->keys.nelts; n++) { - if (v[i].name.len == key[n].key.len + av = key[n].value; + + if (av->get_handler + && v[i].name.len == key[n].key.len && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len) == 0) { - av = key[n].value; - v[i].get_handler = av->get_handler; v[i].data = av->data; |