Skip to content

Commit

Permalink
Update tcp_socket_posix remove unnecessary errno translation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxz-lab authored Sep 12, 2024
1 parent a5ff4d2 commit 8e62453
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions net/socket/tcp_socket_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,7 @@ int TCPSocketPosix::Bind(const IPEndPoint& address) {
SockaddrStorage storage;
if (!address.ToSockAddr(storage.addr, &storage.addr_len))
return ERR_ADDRESS_INVALID;
int rv = socket_->Bind(storage);
if (rv != 0){
DLOG(ERROR) << "TCPSocketPosix::Bind returned an error" << rv;
return MapSystemError(errno);
}
return OK;
return socket_->Bind(storage);
}

int TCPSocketPosix::Listen(int backlog) {
Expand Down

0 comments on commit 8e62453

Please sign in to comment.