File bnc#677792.diff of Package postfix.import4251

diff -urN postfix-2.5.6-ipv6_disabled.patch//src/smtp/smtp_proto.c postfix-2.5.6-bnc#677792//src/smtp/smtp_proto.c
--- postfix-2.5.6-ipv6_disabled.patch//src/smtp/smtp_proto.c	2008-01-09 15:04:37.000000000 +0100
+++ postfix-2.5.6-bnc#677792//src/smtp/smtp_proto.c	2011-03-17 08:18:19.498489005 +0100
@@ -811,6 +811,9 @@
 				   SMTP_RESP_FAKE(&fake, "4.7.5"),
 				   "Server certificate not verified"));
 
+    /* At this point there must not be any pending plaintext. */
+    vstream_fpurge(session->stream, VSTREAM_PURGE_BOTH);
+
     /*
      * At this point we have to re-negotiate the "EHLO" to reget the
      * feature-list.
diff -urN postfix-2.5.6-ipv6_disabled.patch//src/smtpd/smtpd.c postfix-2.5.6-bnc#677792//src/smtpd/smtpd.c
--- postfix-2.5.6-ipv6_disabled.patch//src/smtpd/smtpd.c	2009-01-04 02:04:04.000000000 +0100
+++ postfix-2.5.6-bnc#677792//src/smtpd/smtpd.c	2011-03-17 08:18:19.497489005 +0100
@@ -3912,6 +3912,9 @@
     /* Flush before we switch the stream's read/write routines. */
     smtp_flush(state->client);
 
+    /* At this point there must not be any pending plaintext. */
+    vstream_fpurge(state->client, VSTREAM_PURGE_BOTH);
+
     /*
      * Reset all inputs to the initial state.
      *