Browse Source

it should finally be fixed.

MissValeska 10 years ago
parent
commit
247d4895e9
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/inet.c

+ 3
- 1
src/inet.c View File

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

Loading…
Cancel
Save