summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorSepalani <sepalani@hotmail.fr>2017-06-04 01:48:31 +0100
committerSepalani <sepalani@hotmail.fr>2017-06-04 05:47:48 +0100
commitef20e85661050ae7cf805d86e706331d01e65624 (patch)
tree090c52a8d31a8aaa2934d05a95cb13f1124f0f79 /Source/Core
parent1c18dc48c75517dffdf09abd292879d85f4e974e (diff)
IOS/Network: Handle SO_EPROTONOSUPPORT
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/Network/Socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/IOS/Network/Socket.cpp b/Source/Core/Core/IOS/Network/Socket.cpp
index 4cd7624647..772c86dce0 100644
--- a/Source/Core/Core/IOS/Network/Socket.cpp
+++ b/Source/Core/Core/IOS/Network/Socket.cpp
@@ -622,6 +622,8 @@ s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol)
{
if (af != 2 && af != 23) // AF_INET && AF_INET6
return -SO_EAFNOSUPPORT;
+ if (protocol != 0) // IPPROTO_IP
+ return -SO_EPROTONOSUPPORT;
s32 fd = static_cast<s32>(socket(af, type, protocol));
s32 wii_fd = AddSocket(fd);
s32 ret = GetNetErrorCode(wii_fd, "NewSocket", false);