Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klass <kissaki@posteo.de>2017-03-21 20:26:46 +0300
committerJan Klass <kissaki@posteo.de>2017-04-07 02:21:36 +0300
commit5cd4b094a44dcc881982052c9bf8e5dfb296e651 (patch)
treeeed124ca6a7b1b63cdc2ea52f847eed0626b14de /src/CryptState.cpp
parente7e61970285f75853bcbef2604925f923eaa323a (diff)
Initialize variables in constructor
Diffstat (limited to 'src/CryptState.cpp')
-rw-r--r--src/CryptState.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CryptState.cpp b/src/CryptState.cpp
index 31b4b5707..da26a8ae4 100644
--- a/src/CryptState.cpp
+++ b/src/CryptState.cpp
@@ -22,6 +22,9 @@ CryptState::CryptState() {
for (int i=0;i<0x100;i++)
decrypt_history[i] = 0;
bInit = false;
+ memset(raw_key, 0, AES_KEY_SIZE_BYTES);
+ memset(encrypt_iv, 0, AES_BLOCK_SIZE);
+ memset(decrypt_iv, 0, AES_BLOCK_SIZE);
uiGood=uiLate=uiLost=uiResync=0;
uiRemoteGood=uiRemoteLate=uiRemoteLost=uiRemoteResync=0;
}