From 33e9c4df9ccc56e63480168ec1dc301b05b9a18c Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 31 May 2011 20:02:45 +0300 Subject: [PATCH] Fix uninitialized variabled in mod_store_mysql --- projects/stargazer/plugins/store/mysql/mysql_store.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index 54e13f86..567d6950 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -1273,6 +1273,10 @@ char password[ADM_PASSWD_LEN + 1]; char passwordE[2*ADM_PASSWD_LEN + 2]; BLOWFISH_CTX ctx; +memset(pass, 0, sizeof(pass)); +memset(password, 0, sizeof(password)); +memset(passwordE, 0, sizeof(passwordE)); + string p; MYSQL_RES *res; MYSQL_ROW row; -- 2.44.2