Fixed double read of response.

This commit is contained in:
Vincent Richard 2013-04-18 12:14:12 +02:00
parent 462311e382
commit ff05f2228e

View File

@ -631,8 +631,10 @@ void SMTPTransport::send
{
commands->writeToSocket(m_socket);
if ((resp = readResponse())->getCode() != 250 &&
(resp = readResponse())->getCode() != 251)
resp = readResponse();
if (resp->getCode() != 250 &&
resp->getCode() != 251)
{
internalDisconnect();
throw exceptions::command_error(commands->getLastCommandSent()->getText(), resp->getText());