aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/hostip.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/network/hostip.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/hostip.cpp')
-rw-r--r--util/network/hostip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/network/hostip.cpp b/util/network/hostip.cpp
index cb8d43bf90..62085e7c5b 100644
--- a/util/network/hostip.cpp
+++ b/util/network/hostip.cpp
@@ -28,8 +28,8 @@ int NResolver::GetHostIP(const char* hostname, ui32* ip, size_t* slots) {
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
- struct addrinfo* gai_res = nullptr;
- int gai_ret = getaddrinfo(hostname, nullptr, &hints, &gai_res);
+ struct addrinfo* gai_res = nullptr;
+ int gai_ret = getaddrinfo(hostname, nullptr, &hints, &gai_res);
if (gai_ret == 0 && gai_res->ai_addr) {
struct addrinfo* cur = gai_res;
for (i = 0; i < *slots && cur; i++, cur = cur->ai_next, ipsFound++) {