diff options
author | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-06-05 02:28:32 +0000 |
---|---|---|
committer | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-06-05 02:28:32 +0000 |
commit | 019521bc0938a1b1517b01500923589a4a11e698 (patch) | |
tree | 2d99f46d73b51ff6b6ba804bc448b8ad2b2e65a3 /mysql.c | |
parent | f8bf964f648d2cfc212ec368ece5553b897062ab (diff) |
BUILD : 1.7.3 (170) BUGS : 86 NOTES : Buffer initialization for encrypted MySQL passwords.
git-svn-id: svn://svn.anope.org/anope/trunk@170 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@118 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'mysql.c')
-rw-r--r-- | mysql.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -218,6 +218,9 @@ char *db_mysql_secure(char *pass) char epass[BUFSIZE]; + /* Initialize the buffer. Bug #86 */ + memset(epass, '\0', BUFSIZE); + #ifdef USE_ENCRYPTION /* If we use the builtin encryption don't double encrypt! */ snprintf(epass, sizeof(epass), "'%s'", pass); |