From ef595735b4debd1f81e6d164da5419cf84c35e99 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Tue, 2 Jul 2019 17:49:21 +0200 Subject: [PATCH] bugfix GitOrigin-RevId: c582a3dea47233610427cc74e1c26e15b417288e --- td/mtproto/TlsInit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/mtproto/TlsInit.cpp b/td/mtproto/TlsInit.cpp index 865b49270..1490cadc9 100644 --- a/td/mtproto/TlsInit.cpp +++ b/td/mtproto/TlsInit.cpp @@ -374,7 +374,7 @@ Status TlsInit::wait_hello_response() { it.advance(skip_size); } - auto response = fd_.input_buffer().cut_head(it.begin().clone()).read_as_buffer_slice(); + auto response = fd_.input_buffer().cut_head(it.begin().clone()).move_as_buffer_slice(); auto response_rand_slice = response.as_slice().substr(11, 32); auto response_rand = response_rand_slice.str(); std::fill(response_rand_slice.begin(), response_rand_slice.end(), '\0');