Index: net/socket/unix_domain_listen_socket_posix.cc |
diff --git a/net/socket/unix_domain_listen_socket_posix.cc b/net/socket/unix_domain_listen_socket_posix.cc |
index 7bab4ffcb7fe0c9df40cbfc6869969f5e61a4954..398031c3eee640bde215b99ad9d6cea85cfb0525 100644 |
--- a/net/socket/unix_domain_listen_socket_posix.cc |
+++ b/net/socket/unix_domain_listen_socket_posix.cc |
@@ -113,10 +113,9 @@ void UnixDomainListenSocket::Accept() { |
SocketDescriptor conn = StreamListenSocket::AcceptSocket(); |
if (conn == kInvalidSocket) |
return; |
- uid_t user_id; |
- gid_t group_id; |
- if (!UnixDomainServerSocket::GetPeerIds(conn, &user_id, &group_id) || |
- !auth_callback_.Run(user_id, group_id)) { |
+ UnixDomainServerSocket::Credentials credentials; |
+ if (!UnixDomainServerSocket::GetPeerIds(conn, &credentials) || |
+ !auth_callback_.Run(credentials)) { |
if (IGNORE_EINTR(close(conn)) < 0) |
LOG(ERROR) << "close() error"; |
return; |