Skip to content
Snippets Groups Projects
Commit 3760adc6 authored by David Beitey's avatar David Beitey
Browse files

Merge pull request #7 from vidiecan/issue_6

fixed #6 by initialising hash member variable
parents e985431a f4633417
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,7 @@ ngx_http_auth_request_handler(ngx_http_request_t *r) ...@@ -190,6 +190,7 @@ ngx_http_auth_request_handler(ngx_http_request_t *r)
/* Strip the Variable- prefix */ /* Strip the Variable- prefix */
hi->key.len = h[i].key.len - 9; hi->key.len = h[i].key.len - 9;
hi->key.data = h[i].key.data + 9; hi->key.data = h[i].key.data + 9;
hi->hash = ngx_hash_key(hi->key.data, hi->key.len);
hi->value = h[i].value; hi->value = h[i].value;
hi->lowcase_key = ngx_pnalloc(r->pool, hi->key.len); hi->lowcase_key = ngx_pnalloc(r->pool, hi->key.len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment