Skip to content

Commit

Permalink
I hope this makes the code work on solaris, too and fix the EINVAL on…
Browse files Browse the repository at this point in the history
… sendto()
  • Loading branch information
Thilo Schulz committed Apr 5, 2008
1 parent 70cd2cc commit fcbf0bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/qcommon/net_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ void Sys_SendPacket( int length, const void *data, netadr_t to ) {
}
else {
if(addr.ss_family == AF_INET)
ret = sendto( ip_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(addr) );
else
ret = sendto( ip6_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(addr) );
ret = sendto( ip_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(struct sockaddr_in) );
else if(addr.ss_family == AF_INET6)
ret = sendto( ip6_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(struct sockaddr_in6) );
}
if( ret == SOCKET_ERROR ) {
int err = socketError;
Expand Down

0 comments on commit fcbf0bd

Please sign in to comment.