Skip to content

Commit

Permalink
Merge pull request #5 from lluuaapp/fix-crash
Browse files Browse the repository at this point in the history
Fixed crash when authenticating with current macOS/Safari
  • Loading branch information
erikdubbelboer committed Jul 28, 2016
2 parents f85f5d6 + 5ca3319 commit cc61b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngx_http_auth_digest_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ ngx_http_auth_digest_verify_hash(ngx_http_request_t *r, ngx_http_auth_digest_cre
http_method.len = r->method_name.len+1;
http_method.data = ngx_pcalloc(r->pool, http_method.len);
if (http_method.data==NULL) return NGX_HTTP_INTERNAL_SERVER_ERROR;
p = ngx_cpymem(http_method.data, r->method_name.data, r->method_end - r->method_name.data+1);
p = ngx_cpymem(http_method.data, r->method_name.data, r->method_name.len);

ha2_key.len = http_method.len + r->unparsed_uri.len + 1;
ha2_key.data = ngx_pcalloc(r->pool, ha2_key.len);
Expand Down

0 comments on commit cc61b4a

Please sign in to comment.