diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 16:35:49 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 16:35:49 +0300 |
commit | edefa564e11987d4aa60fff0a2378785deb03b54 (patch) | |
tree | 66e32a4d0284fb784a73d76f5531b708cd72be44 /library/cpp/http | |
parent | 04182a7d083f485a3364f570da83470e580c78ac (diff) | |
download | ydb-edefa564e11987d4aa60fff0a2378785deb03b54.tar.gz |
intermediate changes
ref:5a427ceffcbeddcbaed23c62818445bd98632b96
Diffstat (limited to 'library/cpp/http')
-rw-r--r-- | library/cpp/http/misc/httpreqdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/http/misc/httpreqdata.cpp b/library/cpp/http/misc/httpreqdata.cpp index f02611bc58..38bdad3996 100644 --- a/library/cpp/http/misc/httpreqdata.cpp +++ b/library/cpp/http/misc/httpreqdata.cpp @@ -35,7 +35,7 @@ TStringBuf TBaseServerRequestData::RemoteAddr() const { if (!Addr_) { auto& addr = Addr_.ConstructInPlace(); addr.ReserveAndResize(INET6_ADDRSTRLEN); - if (GetRemoteAddr(Socket_, addr.begin(), sizeof(INET6_ADDRSTRLEN))) { + if (GetRemoteAddr(Socket_, addr.begin(), addr.size())) { if (auto pos = addr.find('\0'); pos != TString::npos) { addr.resize(pos); } |