IOS/Network: Handle SO_ENOMEM

This commit is contained in:
Sepalani 2017-06-04 03:32:15 +01:00
parent a3c4070d91
commit 3b48e613e5
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ static s32 TranslateErrorCode(s32 native_error, bool isRW)
return -SO_ENETUNREACH;
case ERRORCODE(EHOSTUNREACH):
return -SO_EHOSTUNREACH;
case ENOMEM: // See man (7) ip
case ERRORCODE(ENOBUFS):
return -SO_ENOMEM;
case EITHER(WSAEWOULDBLOCK, EAGAIN):
if (isRW)
{