aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/sock.h
diff options
context:
space:
mode:
authorkakabba <kakabba@yandex-team.ru>2022-02-10 16:46:04 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:04 +0300
commit9c914f41ba5e9f9365f404e892197553ac23809e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network/sock.h
parentc8e3995898c443e78266f7420aac5fb3da15d413 (diff)
downloadydb-9c914f41ba5e9f9365f404e892197553ac23809e.tar.gz
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/sock.h')
-rw-r--r--util/network/sock.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/network/sock.h b/util/network/sock.h
index 5db2ee1091..b10be2f715 100644
--- a/util/network/sock.h
+++ b/util/network/sock.h
@@ -251,10 +251,10 @@ struct TSockAddrInet: public sockaddr_in, public ISockAddr {
if (ret < 0)
return -errno;
- socklen_t len = Len();
- if (getsockname(s, (struct sockaddr*)(SockAddr()), &len) < 0)
- return -WSAGetLastError();
-
+ socklen_t len = Len();
+ if (getsockname(s, (struct sockaddr*)(SockAddr()), &len) < 0)
+ return -WSAGetLastError();
+
return 0;
}