summaryrefslogtreecommitdiff
path: root/modules/webrtc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-02 13:07:55 +0200
committerGitHub <noreply@github.com>2020-04-02 13:07:55 +0200
commit5f11e1557156617366d2c316a97716172103980d (patch)
tree288d8275067df46a8fc58e99184c74955de39bd8 /modules/webrtc
parent7341a8fe1df65dc4d36aa49938575b6099764c0a (diff)
parent359bebd8c08a626e64ade1ac45c3c925352bd8a4 (diff)
Merge pull request #37504 from qarmin/out_of_bound_cursor
Fix array out of bounds access caused by uninitialised variables
Diffstat (limited to 'modules/webrtc')
-rw-r--r--modules/webrtc/webrtc_multiplayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/webrtc/webrtc_multiplayer.cpp b/modules/webrtc/webrtc_multiplayer.cpp
index c24ae3468f..216eaf1ca3 100644
--- a/modules/webrtc/webrtc_multiplayer.cpp
+++ b/modules/webrtc/webrtc_multiplayer.cpp
@@ -371,6 +371,7 @@ WebRTCMultiplayer::WebRTCMultiplayer() {
unique_id = 0;
next_packet_peer = 0;
target_peer = 0;
+ client_count = 0;
transfer_mode = TRANSFER_MODE_RELIABLE;
refuse_connections = false;
connection_status = CONNECTION_DISCONNECTED;