From 19b6aeeb9314ac1c0391d471333627b9f4af7c5a Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 11 Jul 2019 23:42:59 +0300 Subject: [PATCH] Update check for TLS-proxy secret. GitOrigin-RevId: 4ea3040f2db8da91baecd0a814933cd9cc4ccf2e --- td/mtproto/ProxySecret.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/mtproto/ProxySecret.cpp b/td/mtproto/ProxySecret.cpp index 51fa957cd..7fc5eef71 100644 --- a/td/mtproto/ProxySecret.cpp +++ b/td/mtproto/ProxySecret.cpp @@ -26,7 +26,7 @@ Result ProxySecret::from_link(Slice encoded_secret) { Result ProxySecret::from_binary(Slice raw_unchecked_secret) { if (raw_unchecked_secret.size() == 16 || (raw_unchecked_secret.size() == 17 && static_cast(raw_unchecked_secret[0]) == 0xdd) || - (raw_unchecked_secret.size() >= 17 && static_cast(raw_unchecked_secret[0]) == 0xee)) { + (raw_unchecked_secret.size() >= 18 && static_cast(raw_unchecked_secret[0]) == 0xee)) { return from_raw(raw_unchecked_secret); } if (raw_unchecked_secret.size() < 16) {