aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-07-17 20:47:47 +0200
committerGitHub <noreply@github.com>2023-07-17 20:47:47 +0200
commit732714349ea043f0e09e1c52a568f64790da0849 (patch)
tree8ee5de117c9bae973bc1087ea45571dd68aadc75 /src
parent016262514d46cd51f1f2298bc7583ef44504a90d (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.cs2
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);