From 6d97afe035129379f38f7f8b45e08095fbb8f406 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Wed, 7 Aug 2024 02:33:20 +0200 Subject: [PATCH] auth: mech-oauth2 - Use str functions rather than direct access to underlying buffer_t --- src/auth/mech-oauth2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/mech-oauth2.c b/src/auth/mech-oauth2.c index e1004aaad1..14196205ed 100644 --- a/src/auth/mech-oauth2.c +++ b/src/auth/mech-oauth2.c @@ -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, reply->data, reply->used); + auth_request_fail_with_reply(request, str_data(reply), str_len(reply)); } static void -- 2.47.3