Fix invalid handle offset.
authorArmin Novak <armin.novak@thincast.com>
Tue, 6 Mar 2018 12:58:40 +0000 (13:58 +0100)
committerArmin Novak <armin.novak@thincast.com>
Tue, 6 Mar 2018 12:58:40 +0000 (13:58 +0100)
libfreerdp/core/transport.c

index d462e1b..159c96f 100644 (file)
@@ -954,7 +954,7 @@ void transport_get_fds(rdpTransport* transport, void** rfds, int* rcount)
                rfds[index] = GetEventWaitObject(events[index]);
        }
 
-       rfds[nCount + 1] = GetEventWaitObject(transport->rereadEvent);
+       rfds[nCount] = GetEventWaitObject(transport->rereadEvent);
 }
 
 BOOL transport_is_write_blocked(rdpTransport* transport)