[PATCH] Correct return value of net_init()
Posted: Sat Mar 14, 2009 2:39 pm
This patch fixes net_init in non-error cases. I guess an error sneaked in sometime here
// Simon
// Simon
Code: Select all
Index: libogc/network_wii.c
===================================================================
RCS file: /cvsroot/devkitpro/libogc/libogc/network_wii.c,v
retrieving revision 1.19
diff -u -r1.19 network_wii.c
--- libogc/network_wii.c 9 Dec 2008 11:30:06 -0000 1.19
+++ libogc/network_wii.c 14 Mar 2009 13:38:38 -0000
@@ -321,6 +321,7 @@
debug_printf(" %d.%d.%d.%d\n", octets[0], octets[1], octets[2], octets[3]);
+ return ret;
error:
IOS_Close(net_ip_top_fd);
net_ip_top_fd = -1;