From: Stephan Bosch Date: Wed, 7 Aug 2024 00:33:20 +0000 (+0200) Subject: auth: mech-oauth2 - Use str functions rather than direct access to underlying buffer_t X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d97afe035129379f38f7f8b45e08095fbb8f406;p=thirdparty%2Fdovecot%2Fcore.git auth: mech-oauth2 - Use str functions rather than direct access to underlying buffer_t --- 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