Browse Source

MT#61625 fix getsockname call

Change-Id: If58e83e3bd03d39b552ed1e843d31baefe5c8e37
pull/1912/head
Richard Fuchs 10 months ago
parent
commit
b1e69f74dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/socket.c

+ 1
- 1
lib/socket.c View File

@ -318,7 +318,7 @@ static bool __ip_accept(socket_t *s, socket_t *newsock) {
}
static bool __ip_getsockname(socket_t *s) {
struct sockaddr_storage sin;
socklen_t sinlen;
socklen_t sinlen = sizeof(sin);
int ret = getsockname(s->fd, (struct sockaddr *) &sin, &sinlen);
if (ret != 0)
return false;


Loading…
Cancel
Save