From 5ebe01191ecb01f18e2e7c06a8a1e113c834ffec Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 14 May 2018 12:37:56 -0400 Subject: [PATCH] Fixed hang in _socketDeserializeHostent(). --- nx/source/runtime/devices/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index 4dc048e7..4a10ddf4 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -1120,7 +1120,7 @@ static struct hostent *_socketDeserializeHostent(int *err, const void *out_he_se pos += name_size; pos_aliases = pos; for(pos = buf, len = 1; len != 0; pos += len + 1) { - len = strlen(buf); + len = strlen(pos); if(len != 0) nb_aliases++; }