[SCM] GNU Mailutils branch, master, updated. rel-2_1-14-g34bbf3c

"Sergey Poznyakoff" <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.cvs
Message-ID <[email protected]>
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 <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.