Changeset 49027 in vbox for trunk/src/VBox/NetworkServices
- Timestamp:
- Oct 10, 2013 12:05:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/portfwd.c
r49024 r49027 223 223 saf = (sdom == PF_INET) ? AF_INET : AF_INET6; 224 224 225 fwspec->src.sa.sa_family = saf; 225 226 socklen = sizeof(fwspec->src); 226 fwspec->src.sa.sa_family = saf; /* see "Remarks" WSAStringToAddress */227 227 status = WSAStringToAddressA((char *)src_addr_str, saf, NULL, 228 228 &fwspec->src.sa, &socklen); 229 229 if (status == SOCKET_ERROR) { 230 return -1;231 }232 233 if (fwspec->src.sa.sa_family != saf) {234 230 return -1; 235 231 } … … 240 236 &fwspec->dst.sa, &socklen); 241 237 if (status == SOCKET_ERROR) { 242 return -1;243 }244 if (fwspec->dst.sa.sa_family != saf) {245 238 return -1; 246 239 }
Note:
See TracChangeset
for help on using the changeset viewer.