- Timestamp:
- Jul 10, 2014 2:45:05 PM (11 years ago)
- Location:
- trunk/src/VBox/NetworkServices/NAT
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/proxy.c
r51597 r51974 201 201 (LPSTR)&msg, 0, 202 202 NULL); 203 if (nchars <= 0 || msg == NULL) {203 if (nchars == 0 || msg == NULL) { 204 204 cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, NULL, 205 205 "Unknown error: %d", error); … … 528 528 #else 529 529 DWORD nsent; 530 #endif 530 531 int rc; 531 #endif532 532 IOVEC fixiov[8]; /* fixed size (typical case) */ 533 533 const size_t fixiovsize = sizeof(fixiov)/sizeof(fixiov[0]); … … 573 573 574 574 nsent = sendmsg(sock, &mh, 0); 575 rc = (nsent >= 0) ? 0 : SOCKET_ERROR; 575 576 #else 576 577 rc = WSASendTo(sock, iov, (DWORD)clen, &nsent, 0, 577 578 name, (int)namelen, NULL, NULL); 579 #endif 578 580 if (rc == SOCKET_ERROR) { 579 nsent = -1;580 }581 #endif582 if (nsent < 0) {583 581 error = SOCKERRNO(); 584 582 DPRINTF(("%s: socket %d: sendmsg: %R[sockerr]\n", -
trunk/src/VBox/NetworkServices/NAT/pxping_win.c
r51574 r51974 303 303 304 304 nreplies = IcmpParseReplies(pong->buf, (DWORD)pong->bufsize); 305 if (nreplies <= 0) {305 if (nreplies == 0) { 306 306 DWORD error = GetLastError(); 307 307 if (error == IP_REQ_TIMED_OUT) { … … 582 582 583 583 nreplies = Icmp6ParseReplies(pong->buf, (DWORD)pong->bufsize); 584 if (nreplies <= 0) {584 if (nreplies == 0) { 585 585 DWORD error = GetLastError(); 586 586 if (error == IP_REQ_TIMED_OUT) { -
trunk/src/VBox/NetworkServices/NAT/pxtcp.c
r51681 r51974 1583 1583 0, NULL, NULL); 1584 1584 if (status == SOCKET_ERROR) { 1585 nsent =-SOCKERRNO();1585 return -SOCKERRNO(); 1586 1586 } 1587 1587 … … 1867 1867 &flags, NULL, NULL); 1868 1868 if (status == SOCKET_ERROR) { 1869 nread =-SOCKERRNO();1869 return -SOCKERRNO(); 1870 1870 } 1871 1871
Note:
See TracChangeset
for help on using the changeset viewer.