Skip to content

Commit

Permalink
addrlen must be 8
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Feb 20, 2024
1 parent 455afa6 commit cd386dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libogc/network_wii.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,9 @@ s32 net_connect(s32 s, struct sockaddr *addr, socklen_t addrlen)
if (addr->sa_family != AF_INET) return -EAFNOSUPPORT;
if (addrlen < 8) return -EINVAL;

addr->sa_len = 8;
addrlen = 8;

addr->sa_len = addrlen;

memset(params, 0, sizeof(struct connect_params));
params->socket = s;
Expand Down

0 comments on commit cd386dc

Please sign in to comment.