Fixed double read of response.
This commit is contained in:
parent
462311e382
commit
ff05f2228e
@ -631,8 +631,10 @@ void SMTPTransport::send
|
|||||||
{
|
{
|
||||||
commands->writeToSocket(m_socket);
|
commands->writeToSocket(m_socket);
|
||||||
|
|
||||||
if ((resp = readResponse())->getCode() != 250 &&
|
resp = readResponse();
|
||||||
(resp = readResponse())->getCode() != 251)
|
|
||||||
|
if (resp->getCode() != 250 &&
|
||||||
|
resp->getCode() != 251)
|
||||||
{
|
{
|
||||||
internalDisconnect();
|
internalDisconnect();
|
||||||
throw exceptions::command_error(commands->getLastCommandSent()->getText(), resp->getText());
|
throw exceptions::command_error(commands->getLastCommandSent()->getText(), resp->getText());
|
||||||
|
Loading…
Reference in New Issue
Block a user