Skip to content

Commit

Permalink
Fix for isue:
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanem committed Dec 16, 2023
1 parent 773ae0d commit d529782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getname.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int W32_CALL getpeername (int s, struct sockaddr *name, socklen_t *namelen)
return (-1);
}

if (!(socket->so_state & SS_ISCONNECTED))
if (!socket->remote_addr)
{
SOCK_DEBUGF ((", ENOTCONN"));
SOCK_ERRNO (ENOTCONN);
Expand Down

0 comments on commit d529782

Please sign in to comment.