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=34bbf3cc3526975957cc22345f63849c66742a75 The branch, master has been updated via 34bbf3cc3526975957cc22345f63849c66742a75 (commit) from 8594f053df8ed4de9735f40355fd5608eab1cfb9 (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 34bbf3cc3526975957cc22345f63849c66742a75 Author: Sergey Poznyakoff <g...@gnu.org.ua> Date: Tue Dec 1 15:23:02 2009 +0200 Fix reusability of smtp mailers. * libproto/mailer/smtp.c (_smtp_set_rcpt): Initialize smtp->ptr to smtp->buffer, not NULL. (smtp_close): Reset smtp->state. ----------------------------------------------------------------------- Summary of changes: libproto/mailer/smtp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libproto/mailer/smtp.c b/libproto/mailer/smtp.c index 752198d..f78890a 100644 --- a/libproto/mailer/smtp.c +++ b/libproto/mailer/smtp.c @@ -200,7 +200,7 @@ static int _smtp_set_rcpt (smtp_t, mu_message_t, mu_address_t); static void CLEAR_STATE (smtp_t smtp) { - smtp->ptr = NULL; + smtp->ptr = smtp->buffer; smtp->nl = NULL; smtp->s_offset = 0; @@ -559,6 +559,7 @@ smtp_close (mu_mailer_t mailer) default: break; } + smtp->state = SMTP_NO_STATE; return mu_stream_close (mailer->stream); } hooks/post-receive -- GNU Mailutils _______________________________________________ Commit-mailutils mailing list Commit-mailutils@gnu.org http://lists.gnu.org/mailman/listinfo/commit-mailutils