MT#61625 fix getsockname call

Change-Id: If58e83e3bd03d39b552ed1e843d31baefe5c8e37
pull/1912/head
Richard Fuchs 9 months ago
parent 8974f953ef
commit b1e69f74dd

@ -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