2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-13 13:58:04 +00:00

Improve some paddings.

This commit is contained in:
John Preston
2021-06-24 16:29:48 +04:00
parent 7decf68122
commit a2c33545d4
10 changed files with 7 additions and 43 deletions

View File

@@ -2596,7 +2596,7 @@ void SessionPrivate::destroyTemporaryKey() {
bool SessionPrivate::sendSecureRequest(
SerializedRequest &&request,
bool needAnyResponse) {
request.addPadding(_connection->requiresExtendedPadding(), false);
request.addPadding(false);
uint32 fullSize = request->size();
if (fullSize < 9) {