Bug 1386719, bustage fix NSPR_4_17_BETA1
authorDragana Damjanovic <dd.mozilla@gmail.com>
Fri, 25 Aug 2017 18:00:20 +0200
changeset 4755 c60f6aa3770a
parent 4754 6a0af7609427
child 4756 5b7fbb6efd59
push id271
push userkaie@kuix.de
push date2017-08-25 16:00 +0000
bugs1386719
Bug 1386719, bustage fix
pr/src/io/prsocket.c
--- a/pr/src/io/prsocket.c
+++ b/pr/src/io/prsocket.c
@@ -299,31 +299,35 @@ static PRStatus PR_CALLBACK SocketConnec
         if (getsockopt(osfd, (int)SOL_SOCKET, SO_ERROR, (char *) &err, &len)
                 == SOCKET_ERROR) {
             _PR_MD_MAP_GETSOCKOPT_ERROR(WSAGetLastError());
             return PR_FAILURE;
         }
         if (err != 0) {
             _PR_MD_MAP_CONNECT_ERROR(err);
         } else {
+#if defined(_WIN64)
             if (fd->secret->overlappedActive) {
                 PRInt32 rvSent;
                 if (GetOverlappedResult(osfd, &fd->secret->ol, &rvSent, FALSE) == FALSE) {
                     err = WSAGetLastError();
                     PR_LOG(_pr_io_lm, PR_LOG_MIN,
                            ("SocketConnectContinue GetOverlappedResult failed %d\n", err));
                     if (err != ERROR_IO_INCOMPLETE) {
                         _PR_MD_MAP_CONNECT_ERROR(err);
                         fd->secret->overlappedActive = PR_FALSE;
                     }
                 }
             }
             if (err == 0) {
                 PR_SetError(PR_UNKNOWN_ERROR, 0);
             }
+#else
+            PR_SetError(PR_UNKNOWN_ERROR, 0);
+#endif
         }
         return PR_FAILURE;
     }
 
     PR_ASSERT(out_flags & PR_POLL_WRITE);
 
 #if defined(_WIN64)
     if (fd->secret->alreadyConnected) {