]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mech-oauth2 - Ensure data is cleaned from memory after unref
authorAki Tuomi <aki.tuomi@open-xchange.com>
Sun, 25 Oct 2020 16:52:39 +0000 (18:52 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:12 +0000 (12:34 +0200)
src/auth/mech-oauth2.c

index f352bacc4f80aefea9dfca703e53f29fffed960c..9bd3527b6a45c43ff9a747b60ccba53a89e072e6 100644 (file)
@@ -289,9 +289,8 @@ mech_oauthbearer_auth_continue(struct auth_request *request,
 static struct auth_request *mech_oauth2_auth_new(void)
 {
        struct oauth2_auth_request *request;
-       pool_t pool;
-
-       pool = pool_alloconly_create(MEMPOOL_GROWING"oauth2_auth_request", 2048);
+       pool_t pool = pool_alloconly_create_clean(MEMPOOL_GROWING
+                                                 "oauth2_auth_request", 2048);
        request = p_new(pool, struct oauth2_auth_request, 1);
        request->auth.pool = pool;
        request->db_req.pool = pool;