From a03518c4716c561c30519aabc3834d02de9efb35 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 4 Aug 2024 14:51:27 +0200 Subject: [PATCH] auth: mech-oauth2 - Rename reply buffer in oauth2_send_failure() --- src/auth/mech-oauth2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth/mech-oauth2.c b/src/auth/mech-oauth2.c index 7cef2d1b80..e1004aaad1 100644 --- a/src/auth/mech-oauth2.c +++ b/src/auth/mech-oauth2.c @@ -54,8 +54,8 @@ oauth2_send_failure(struct oauth2_auth_request *oauth2_req, int code, struct auth_request *request = &oauth2_req->auth; const char *oidc_url = (oauth2_req->db == NULL ? "" : db_oauth2_get_openid_configuration_url(oauth2_req->db)); - string_t *str = t_str_new(256); - struct json_ostream *gen = json_ostream_create_str(str, 0); + string_t *reply = t_str_new(256); + struct json_ostream *gen = json_ostream_create_str(reply, 0); json_ostream_ndescend_object(gen, NULL); if (strcmp(request->mech->mech_name, "XOAUTH2") == 0) { @@ -75,7 +75,7 @@ oauth2_send_failure(struct oauth2_auth_request *oauth2_req, int code, json_ostream_destroy(&gen); oauth2_req->failed = TRUE; - auth_request_fail_with_reply(request, str->data, str->used); + auth_request_fail_with_reply(request, reply->data, reply->used); } static void -- 2.47.3