From 9d5dd09fd7e5e89e47989042bcfc390db8c73d2f Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Wed, 20 Jun 2018 00:00:02 +0300 Subject: [PATCH] mtproto::Transport: bugfix GitOrigin-RevId: ea53041b64a84292830e25e111bdbd31d21f1911 --- td/mtproto/Transport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/td/mtproto/Transport.cpp b/td/mtproto/Transport.cpp index cafaa08e2..05d2f4bc3 100644 --- a/td/mtproto/Transport.cpp +++ b/td/mtproto/Transport.cpp @@ -309,8 +309,7 @@ Result Transport::read(MutableSlice message, const AuthKe MutableSlice data; if (info->type == PacketInfo::EndToEnd) { TRY_STATUS(read_e2e_crypto(message, auth_key, info, &data)); - } - if (info->no_crypto_flag) { + } else if (info->no_crypto_flag) { TRY_STATUS(read_no_crypto(message, info, &data)); } else { if (auth_key.empty()) {