Doesn't fix anything, but makes it clearer that req->req must not be
aborted anymore after this stage, because it gets freed anyway.
db_oauth2_introspect_continue(struct oauth2_introspection_result *result,
struct db_oauth2_request *req)
{
+ req->req = NULL;
+
if (!result->success) {
/* fail here */
req->failed = TRUE;
static void db_oauth2_lookup_introspect(struct db_oauth2_request *req)
{
struct oauth2_request_input input;
- i_assert(req->req != NULL);
i_zero(&input);
input.token = req->token;
db_oauth2_lookup_continue(struct oauth2_token_validation_result *result,
struct db_oauth2_request *req)
{
+ req->req = NULL;
+
if (!result->success || !result->valid) {
/* no point going forward */
req->result = result->success ?