dovecot-2.2-pigeonhole: doveadm sieve plugin: Fixed the `Invalid...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Sun Sep 22 12:51:46 EEST 2013
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/3163f3696498
changeset: 1805:3163f3696498
user: Stephan Bosch <stephan at rename-it.nl>
date: Sun Sep 22 11:51:38 2013 +0200
description:
doveadm sieve plugin: Fixed the `Invalid value for default sieve attribute' problem.
The attribute type code data was allocated on the stack rather than statically, causing the returned stream to point to invalid data.
diffstat:
src/plugins/doveadm-sieve/doveadm-sieve-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 34a5db66fc52 -r 3163f3696498 src/plugins/doveadm-sieve/doveadm-sieve-plugin.c
--- a/src/plugins/doveadm-sieve/doveadm-sieve-plugin.c Tue Sep 17 23:57:05 2013 +0200
+++ b/src/plugins/doveadm-sieve/doveadm-sieve-plugin.c Sun Sep 22 11:51:38 2013 +0200
@@ -388,7 +388,7 @@
bool add_type_prefix,
struct mail_attribute_value *value_r, const char **errorstr_r)
{
- char type = MAILBOX_ATTRIBUTE_SIEVE_DEFAULT_SCRIPT;
+ static char type = MAILBOX_ATTRIBUTE_SIEVE_DEFAULT_SCRIPT;
struct istream *input, *inputs[3];
const struct stat *st;
enum sieve_error error;
More information about the dovecot-cvs
mailing list