summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-08 08:25:19 -0700
committerPixel <pixel@nobis-crew.org>2008-10-08 08:25:19 -0700
commitdf0b48003532584f43c19dab502f8b36f2269898 (patch)
treedaad1cb25f51e0926e3effc7cd83931b551d5c6a
parent83cef74ff89d685295e201ffe188073050814428 (diff)
Resetting buffers between reads and writes.
-rw-r--r--lib/MailServer.cc2
1 files changed, 2 insertions, 0 deletions
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;