This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU Mailutils".
http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=cff44776a11f31dcbaa0445fbddf02e7cd8284c0 The branch, master has been updated via cff44776a11f31dcbaa0445fbddf02e7cd8284c0 (commit) from d78773a2f393697f81d2b6f1be832eadb7a05019 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit cff44776a11f31dcbaa0445fbddf02e7cd8284c0 Author: Sergey Poznyakoff <g...@gnu.org.ua> Date: Wed Dec 22 11:39:41 2010 +0200 Pop3-client bugfixes (mostly). * libmailutils/stream/fltstream.c (filter_ctl): MU_IOCTL_TRANSPORT returns filter transport stream. * libproto/pop/pop3_rdlist.c (mu_pop3_stream_to_list): Make sure status is initialized and reflects the actual status. * libproto/pop/pop3_stream.c (mu_pop3_filter_create): Do not unref transport stream, it is done by the caller. ----------------------------------------------------------------------- Summary of changes: libmailutils/stream/fltstream.c | 5 ++++- libproto/pop/pop3_rdlist.c | 3 ++- libproto/pop/pop3_stream.c | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libmailutils/stream/fltstream.c b/libmailutils/stream/fltstream.c index 706b34c..bdb5717 100644 --- a/libmailutils/stream/fltstream.c +++ b/libmailutils/stream/fltstream.c @@ -407,8 +407,11 @@ filter_ctl (struct _mu_stream *stream, int code, int opcode, void *ptr) ptrans[1] = NULL; } break; + default: + return ENOSYS; } - /* fall through */ + break; + default: return mu_stream_ioctl (fs->transport, code, opcode, ptr); } diff --git a/libproto/pop/pop3_rdlist.c b/libproto/pop/pop3_rdlist.c index 915d7ce..1011eda 100644 --- a/libproto/pop/pop3_rdlist.c +++ b/libproto/pop/pop3_rdlist.c @@ -33,7 +33,8 @@ mu_pop3_stream_to_list (mu_pop3_t pop3, mu_stream_t stream, mu_list_t list) int status; size_t n; - while (mu_stream_getline (stream, &pop3->rdbuf, &pop3->rdsize, &n) == 0 + while ((status = mu_stream_getline (stream, &pop3->rdbuf, &pop3->rdsize, &n)) + == 0 && n > 0) { char *np = strdup (pop3->rdbuf); diff --git a/libproto/pop/pop3_stream.c b/libproto/pop/pop3_stream.c index e0b9279..7ae579a 100644 --- a/libproto/pop/pop3_stream.c +++ b/libproto/pop/pop3_stream.c @@ -74,7 +74,6 @@ mu_pop3_filter_create (mu_stream_t *pstream, mu_stream_t stream) rc = mu_filter_create (pstream, stream, "CRLFDOT", MU_FILTER_DECODE, MU_STREAM_READ); - mu_stream_unref (stream); if (rc == 0) { struct mu_pop3_stream *sp = (struct mu_pop3_stream *) stream; hooks/post-receive -- GNU Mailutils _______________________________________________ Commit-mailutils mailing list Commit-mailutils@gnu.org http://lists.gnu.org/mailman/listinfo/commit-mailutils