Update mitm.cpp

This commit is contained in:
Autechre 2021-11-10 05:15:58 +01:00 committed by GitHub
parent b27a9b2316
commit 35b53b1cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,7 +844,7 @@ void MITM::readyRead() {
return; return;
} }
qint64 readBytes = sock->read(info.core_name, info_payload_size); qint64 readBytes = sock->read(&info.content_crc, info_payload_size);
if(readBytes != (qint64)info_payload_size) { if(readBytes != (qint64)info_payload_size) {
CLIENT_LOGF(sock, "could not read info from client. got %" PRIi64 " bytes when expecting %" PRIu64 ", aborting\n", static_cast<int64_t>(readBytes), info_payload_size); CLIENT_LOGF(sock, "could not read info from client. got %" PRIi64 " bytes when expecting %" PRIu64 ", aborting\n", static_cast<int64_t>(readBytes), info_payload_size);