]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mech-otp - Remove pool field from mechanism request struct
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 5 Mar 2023 16:06:02 +0000 (17:06 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/auth/mech-otp.c

index cc4b37c0dcd3cd771643937898b54b58b9aa4075..5f73ba671336b47c89061a148731014183a8c960 100644 (file)
@@ -19,8 +19,6 @@
 struct otp_auth_request {
        struct auth_request auth_request;
 
-       pool_t pool;
-
        bool lock;
 
        struct otp_state state;
@@ -104,7 +102,7 @@ otp_send_challenge(struct otp_auth_request *request,
                return;
        }
 
-       answer = p_strdup_printf(request->pool, "otp-%s %u %s ext",
+       answer = p_strdup_printf(auth_request->pool, "otp-%s %u %s ext",
                                 digest_name(request->state.algo),
                                 request->state.seq, request->state.seed);
 
@@ -298,7 +296,6 @@ static struct auth_request *mech_otp_auth_new(void)
 
        pool = pool_alloconly_create(MEMPOOL_GROWING"otp_auth_request", 2048);
        request = p_new(pool, struct otp_auth_request, 1);
-       request->pool = pool;
        request->lock = FALSE;
 
        request->auth_request.refcount = 1;