Skip to content

Commit

Permalink
lib-oauth2: Handle non-2xx/4xx results for token validation without c…
Browse files Browse the repository at this point in the history
…rash

Fixes:
Panic: file oauth2-token-validate.c: line 33 (oauth2_token_validate_continue): assertion failed: (array_is_created(&req->fields))
  • Loading branch information
sirainen authored and villesavolainen committed Jun 16, 2017
1 parent 537f120 commit 0856f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-oauth2/oauth2-token-validate.c
Expand Up @@ -30,7 +30,7 @@ oauth2_token_validate_continue(struct oauth2_request *req, bool success,
struct oauth2_token_validation_result res;
i_zero(&res);

i_assert(array_is_created(&req->fields));
i_assert(array_is_created(&req->fields) || !success);

res.success = success;
res.error = error;
Expand Down

0 comments on commit 0856f4c

Please sign in to comment.