]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mech-oauth2 - Use str functions rather than direct access to underlying buffer_t
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 7 Aug 2024 00:33:20 +0000 (02:33 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 2 Sep 2025 05:25:53 +0000 (05:25 +0000)
src/auth/mech-oauth2.c

index e1004aaad1e73e06e1218e145af4aa811f79cdf9..14196205ed977609dc9c7aeb327690bfc80bdaea 100644 (file)
@@ -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