]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Use GRBUF_MIN_SIZE for groups instead of PWBUF_MIN_SIZE
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 28 Feb 2022 11:53:05 +0000 (06:53 -0500)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 18 Mar 2022 06:27:23 +0000 (06:27 +0000)
They both have the same value, so it didn't break anything.

src/lib/ipwd.c

index 8ac81fa2d4746feacf9f2d26446d1e733f4d9b1c..092c2c2ba9d3199635f52c4fa38d7bdcd1d1d7d4 100644 (file)
@@ -30,8 +30,8 @@ static void gr_init(void)
 
        if (grbuf == NULL || errno == ERANGE) {
                grbuf_size = nearest_power(old_grbuf_size + 1);
-               if (grbuf_size < PWBUF_MIN_SIZE)
-                       grbuf_size = PWBUF_MIN_SIZE;
+               if (grbuf_size < GRBUF_MIN_SIZE)
+                       grbuf_size = GRBUF_MIN_SIZE;
                grbuf = i_realloc(grbuf, old_grbuf_size, grbuf_size);
        }
 }