We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5df258 commit 1b00254Copy full SHA for 1b00254
src/ngx_http_auth_jwt_module.c
@@ -129,7 +129,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
129
char* return_url;
130
ngx_http_auth_jwt_loc_conf_t *jwtcf;
131
u_char *keyBinary;
132
- jwt_t *jwt;
+ jwt_t *jwt = NULL;
133
int jwtParseReturnCode;
134
jwt_alg_t alg;
135
const char* sub;
@@ -231,9 +231,17 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
231
}
232
233
234
+ jwt_free(jwt);
235
+
236
return NGX_OK;
237
238
redirect:
239
240
+ if (jwt)
241
+ {
242
243
+ }
244
245
r->headers_out.location = ngx_list_push(&r->headers_out.headers);
246
247
if (r->headers_out.location == NULL)
0 commit comments