mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Fixed hang in _socketDeserializeHostent().
This commit is contained in:
parent
ce718b3ac2
commit
5ebe01191e
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user