GH 109: Bug in SMTPClientSession::loginUsingPlain

- fixed GH# 109: Bug in Poco::Net::SMTPClientSession::loginUsingPlain
This commit is contained in:
aleks-f
2013-02-27 12:40:57 -06:00
parent 2d87e2bd84
commit 4e3ff72803
2 changed files with 2 additions and 1 deletions

View File

@@ -230,7 +230,7 @@ void SMTPClientSession::loginUsingPlain(const std::string& username, const std::
{
std::ostringstream credentialsBase64;
Base64Encoder credentialsEncoder(credentialsBase64);
credentialsEncoder << username << '\0' << password;
credentialsEncoder << '\0' << username << '\0' << password;
credentialsEncoder.close();
std::string response;