From df0b48003532584f43c19dab502f8b36f2269898 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 8 Oct 2008 08:25:19 -0700 Subject: Resetting buffers between reads and writes. --- lib/MailServer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MailServer.cc b/lib/MailServer.cc index 6b06219..5ea735a 100644 --- a/lib/MailServer.cc +++ b/lib/MailServer.cc @@ -74,6 +74,7 @@ int ProcessSMTPRequest::Do() { case 1: delete c; + b.reset(); c = new ReadJob(&s, &b, any); WaitFor(c); current = 2; @@ -132,6 +133,7 @@ int ProcessSMTPRequest::Do() { case 4: delete c; + b.reset(); c = new ReadJob(&s, &b, single_dot); WaitFor(c); current = 5; -- cgit v1.2.3