Handle bsdInitialize failure codes properly

This commit is contained in:
TuxSH 2018-02-26 01:39:26 +01:00
parent fe1be791ce
commit c211b2325e

View File

@ -118,6 +118,10 @@ Result socketInitialize(const SocketInitConfig *config) {
ret = bsdInitialize(&bcfg);
if(R_SUCCEEDED(ret))
dev = AddDevice(&g_socketDevoptab);
else {
socketExit();
return ret;
}
if(dev == -1) {
socketExit();