]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mech-winbind - Remove useless pool field in struct winbind_auth_request
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 29 Oct 2023 13:23:03 +0000 (14:23 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/auth/mech-apop.c

index 09affe8c7bfac42a6feab73f0927f4bf1e6e99f7..d5431f3a11c00f00e9e921a0ed9af9634a29fc0b 100644 (file)
@@ -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;