dovecot-2.2-pigeonhole: lib-sieve: program client: Fixed copy-pa...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Jun 17 21:43:21 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/60e5e65ffb01
changeset: 1879:60e5e65ffb01
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Jun 17 23:43:10 2014 +0200
description:
lib-sieve: program client: Fixed copy-paste error in destroy function.
Would cause a segfault.
Reported by Coverity.

diffstat:

 src/lib-sieve/util/program-client.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 743213918b1b -r 60e5e65ffb01 src/lib-sieve/util/program-client.c
--- a/src/lib-sieve/util/program-client.c	Tue Jun 17 23:37:46 2014 +0200
+++ b/src/lib-sieve/util/program-client.c	Tue Jun 17 23:43:10 2014 +0200
@@ -470,7 +470,7 @@
 		i_stream_unref(&pclient->input);
 	if ( pclient->output != NULL )
 		o_stream_unref(&pclient->output);
-	if ( pclient->input != NULL )
+	if ( pclient->seekable_output != NULL )
 		i_stream_unref(&pclient->seekable_output);
 	if ( pclient->io != NULL )
 		io_remove(&pclient->io);


More information about the dovecot-cvs mailing list