From: Stephan Bosch Date: Sun, 29 Oct 2023 13:23:03 +0000 (+0100) Subject: auth: mech-winbind - Remove useless pool field in struct winbind_auth_request X-Git-Tag: 2.4.2~314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f9f2d596dd415b1a5793105cfd5d494f0117cf;p=thirdparty%2Fdovecot%2Fcore.git auth: mech-winbind - Remove useless pool field in struct winbind_auth_request --- diff --git a/src/auth/mech-apop.c b/src/auth/mech-apop.c index 09affe8c7b..d5431f3a11 100644 --- a/src/auth/mech-apop.c +++ b/src/auth/mech-apop.c @@ -20,8 +20,6 @@ struct apop_auth_request { struct auth_request auth_request; - pool_t pool; - /* requested: */ char *challenge; @@ -96,7 +94,7 @@ mech_apop_auth_initial(struct auth_request *auth_request, /* get the challenge */ while (tmp != end && *tmp != '\0') tmp++; - request->challenge = p_strdup_until(request->pool, data, tmp); + request->challenge = p_strdup_until(auth_request->pool, data, tmp); if (tmp != end) { /* get the username */ @@ -155,7 +153,6 @@ static struct auth_request *mech_apop_auth_new(void) pool = pool_alloconly_create(MEMPOOL_GROWING"apop_auth_request", 2048); request = p_new(pool, struct apop_auth_request, 1); - request->pool = pool; request->auth_request.pool = pool; return &request->auth_request;