mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
Handle bsdInitialize failure codes properly
This commit is contained in:
parent
fe1be791ce
commit
c211b2325e
@ -118,6 +118,10 @@ Result socketInitialize(const SocketInitConfig *config) {
|
|||||||
ret = bsdInitialize(&bcfg);
|
ret = bsdInitialize(&bcfg);
|
||||||
if(R_SUCCEEDED(ret))
|
if(R_SUCCEEDED(ret))
|
||||||
dev = AddDevice(&g_socketDevoptab);
|
dev = AddDevice(&g_socketDevoptab);
|
||||||
|
else {
|
||||||
|
socketExit();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if(dev == -1) {
|
if(dev == -1) {
|
||||||
socketExit();
|
socketExit();
|
||||||
|
Loading…
Reference in New Issue
Block a user