File bnc#677792.diff of Package postfix

--- src/smtpd/smtpd.c-orig	2011-03-15 11:46:16.488687003 +0100
+++ src/smtpd/smtpd.c	2011-03-15 11:47:22.865687008 +0100
@@ -4097,6 +4097,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.
      * 
--- src/smtp/smtp_proto.c.orig	2011-03-15 11:44:46.016054002 +0100
+++ src/smtp/smtp_proto.c	2011-03-15 11:45:49.621686995 +0100
@@ -812,6 +812,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.
openSUSE Build Service is sponsored by