diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-07-17 20:47:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 20:47:47 +0200 |
commit | 732714349ea043f0e09e1c52a568f64790da0849 (patch) | |
tree | 8ee5de117c9bae973bc1087ea45571dd68aadc75 /src | |
parent | 016262514d46cd51f1f2298bc7583ef44504a90d (diff) |
[Hotfix] sockets: Resolve empty port requests to 0 again (#5459)1.1.964
Diffstat (limited to 'src')
-rw-r--r-- | src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs index 93960d13..d0fb6675 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs @@ -586,7 +586,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Sfdnsres if (hostEntry != null) { - if (int.TryParse(service, out int port)) + if (int.TryParse(service, out int port) || string.IsNullOrEmpty(service)) { errno = GaiError.Success; serializedSize = SerializeAddrInfos(context, responseBufferPosition, responseBufferSize, hostEntry, port); |