From: Stephan Bosch Date: Sun, 5 Mar 2023 16:06:02 +0000 (+0100) Subject: auth: mech-otp - Remove pool field from mechanism request struct X-Git-Tag: 2.4.2~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e3b00dd172c9eda96cdfa3763afc9df67c8948c;p=thirdparty%2Fdovecot%2Fcore.git auth: mech-otp - Remove pool field from mechanism request struct --- diff --git a/src/auth/mech-otp.c b/src/auth/mech-otp.c index cc4b37c0dc..5f73ba6713 100644 --- a/src/auth/mech-otp.c +++ b/src/auth/mech-otp.c @@ -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;