Skip to content

Commit

Permalink
[qmf] Fixed a crash in PopClient::incomingData
Browse files Browse the repository at this point in the history
Transport may be deleted by processResponse/operationFailed, have to
check it after processResponse returns. That happens, for instance,
if invalid credentials were provided.
  • Loading branch information
monich committed Sep 5, 2014
1 parent b1454b0 commit d3a6523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qmf/src/plugins/messageservices/pop/popclient.cpp
Expand Up @@ -502,7 +502,7 @@ void PopClient::incomingData()
processResponse(response);
}

if (transport->bytesAvailable()) {
if (transport && transport->bytesAvailable()) {
// If there is an incomplete line, read it from the socket buffer to ensure we get readyRead signal next time
lineBuffer.append(transport->readAll());
}
Expand Down

0 comments on commit d3a6523

Please sign in to comment.