aboutsummaryrefslogtreecommitdiffstats
path: root/util/network
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
commitc8e3995898c443e78266f7420aac5fb3da15d413 (patch)
treea530e068cc107e227deccc80722204db63a4d75d /util/network
parent110a978b66fe6c0916572df51cfead2a9b647174 (diff)
downloadydb-c8e3995898c443e78266f7420aac5fb3da15d413.tar.gz
Restoring authorship annotation for <kakabba@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network')
-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 b10be2f715..5db2ee1091 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;
}