it should finally be fixed.

This commit is contained in:
MissValeska 2014-10-26 09:39:25 -07:00
parent 8bc5d69758
commit 247d4895e9

View File

@ -1117,11 +1117,13 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
len-(len/2), flags, to, tolen); len-(len/2), flags, to, tolen);
break; break;
case EFAULT: case EFAULT:
/* Must be modified to accept IPv6 addresses
* when IPv6 support is activated. */
error("Bad Address\n" error("Bad Address\n"
"To Family is: %hu " "To Family is: %hu "
"To Data is: %s", "To Data is: %s",
to->sa_family, to->sa_family,
inet_ntoa( &( ((struct sockaddr_in*)to)->sin_addr ) )); inet_ntoa( ( ((struct sockaddr_in*)to)->sin_addr ) ));
default: default:
error("inet_sendto: Cannot send(): %s", strerror(errno)); error("inet_sendto: Cannot send(): %s", strerror(errno));
return err; return err;