Bug 1584791 - Fix assigning to a pointer instead dereferencing it in TFO code. r=kaie NSPR_4_23_BETA1
authorDragana Damjanovic <dd.mozilla@gmail.com>
Mon, 07 Oct 2019 11:18:21 +0000
changeset 4837 06272844133b5c8ccb535391e1a1a7a40d98d86c
parent 4836 b2e285dc48be27713b3c648de3cf33f8637a3e94
child 4838 f502b63b557bbfe4b820623f4333c5a3e258dbee
push id336
push userkaie@kuix.de
push dateMon, 07 Oct 2019 18:47:02 +0000
reviewerskaie
bugs1584791
Bug 1584791 - Fix assigning to a pointer instead dereferencing it in TFO code. r=kaie Differential Revision: https://phabricator.services.mozilla.com/D48310
pr/src/io/prsocket.c
--- a/pr/src/io/prsocket.c
+++ b/pr/src/io/prsocket.c
@@ -1236,17 +1236,17 @@ static PRStatus PR_CALLBACK SocketGetPee
 static PRInt16 PR_CALLBACK SocketPoll(
     PRFileDesc *fd, PRInt16 in_flags, PRInt16 *out_flags)
 {
     *out_flags = 0;
 
 #if defined(_WIN64)
     if (in_flags & PR_POLL_WRITE) {
         if (fd->secret->alreadyConnected) {
-            out_flags = PR_POLL_WRITE;
+            *out_flags = PR_POLL_WRITE;
             return PR_POLL_WRITE;
         }
     }
 #endif
     return in_flags;
 }  /* SocketPoll */
 
 static PRIOMethods tcpMethods = {