dovecot-2.2-pigeonhole: managesieve: Fixed assert failure occuri...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Mon Sep 7 23:08:40 UTC 2015
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/5df1b6d72ec2
changeset: 2096:5df1b6d72ec2
user: Stephan Bosch <stephan at rename-it.nl>
date: Tue Sep 08 01:08:34 2015 +0200
description:
managesieve: Fixed assert failure occuring when client disconnects during GETSCRIPT command.
Passed NULL as reason to client_disconnect(), which is not allowed.
diffstat:
src/managesieve/cmd-getscript.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 633bf3c89a39 -r 5df1b6d72ec2 src/managesieve/cmd-getscript.c
--- a/src/managesieve/cmd-getscript.c Tue Sep 08 01:07:43 2015 +0200
+++ b/src/managesieve/cmd-getscript.c Tue Sep 08 01:08:34 2015 +0200
@@ -4,6 +4,7 @@
#include "lib.h"
#include "ostream.h"
#include "istream.h"
+#include "iostream.h"
#include "sieve-script.h"
#include "sieve-storage.h"
@@ -64,7 +65,9 @@
sieve_script_location(ctx->script),
i_stream_get_error(ctx->script_stream));
} else {
- client_disconnect(ctx->client, NULL);
+ client_disconnect(ctx->client,
+ io_stream_get_disconnect_reason
+ (client->input, client->output));
}
ctx->failed = TRUE;
return cmd_getscript_finish(ctx);
More information about the dovecot-cvs
mailing list