diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-08 08:25:19 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-08 08:25:19 -0700 |
commit | df0b48003532584f43c19dab502f8b36f2269898 (patch) | |
tree | daad1cb25f51e0926e3effc7cd83931b551d5c6a | |
parent | 83cef74ff89d685295e201ffe188073050814428 (diff) |
Resetting buffers between reads and writes.
-rw-r--r-- | lib/MailServer.cc | 2 |
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; |