summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-12-06 10:12:14 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-12-06 10:12:50 +0200
commitf8a0fd0fdb20fdb607343d932f19e650dfd8f1d2 (patch)
treedccc2e8bd6794760d18a7bc0d4b4d33ddf1679b0
parent3d7a66aeb49cadc0f4faffa465ef994539629aa9 (diff)
downloadmailutils-f8a0fd0fdb20fdb607343d932f19e650dfd8f1d2.tar.gz
mailutils-f8a0fd0fdb20fdb607343d932f19e650dfd8f1d2.tar.bz2
Bugfix
* libmailutils/stream/stream.c (mu_stream_ioctl): Don't flush read buffer.
-rw-r--r--libmailutils/stream/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmailutils/stream/stream.c b/libmailutils/stream/stream.c
index 0ddc435ff..2ab2cbeba 100644
--- a/libmailutils/stream/stream.c
+++ b/libmailutils/stream/stream.c
@@ -1160,7 +1160,7 @@ mu_stream_ioctl (mu_stream_t stream, int family, int opcode, void *ptr)
{
int rc;
_bootstrap_event (stream);
- if ((rc = _stream_flush_buffer (stream, _MU_STR_FLUSH_ALL)))
+ if ((rc = _stream_flush_buffer (stream, _MU_STR_FLUSH_ALL|_MU_STR_FLUSH_KEEP)))
return rc;
if (stream->ctl == NULL)
return ENOSYS;

Return to:

Send suggestions and report system problems to the System administrator.