[Dovecot] Bug in ACL Plugin
Anton Zakatov
anton at abn.ru
Thu Oct 2 11:05:26 EEST 2008
Hello!
Names of groups should be stored in backend memory pool.
--- acl-backend.c.old 2008-10-02 11:43:05.000000000 +0400
+++ acl-backend.c 2008-10-02 11:43:48.000000000 +0400
@@ -62,7 +62,7 @@
backend->groups =
p_new(backend->pool, const char *, group_count);
for (i = 0; i < group_count; i++)
- backend->groups[i] = groups[i];
+ backend->groups[i] = p_strdup(backend->pool,
groups[i]);
qsort(backend->groups, group_count, sizeof(const char *),
i_strcmp_p);
}
With best regards, Anton Zakatov. E-mail: anton at abn.ru
More information about the dovecot
mailing list