Skip to content

Commit 72548c2

Browse files
authored
Merge pull request #19 from lorf/fix/satisfy-any-segv
fix: uninitialized struct field in ngx_http_auth_jwt_set_bearer_header()
2 parents 6e9dd32 + 8677a21 commit 72548c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ ngx_http_auth_jwt_set_bearer_header(ngx_http_request_t *r,
15191519
}
15201520

15211521
r->headers_out.www_authenticate->hash = 1;
1522+
r->headers_out.www_authenticate->next = NULL;
15221523
ngx_str_set(&r->headers_out.www_authenticate->key, "WWW-Authenticate");
15231524
r->headers_out.www_authenticate->value.data = bearer;
15241525
r->headers_out.www_authenticate->value.len = len;

0 commit comments

Comments
 (0)