diff options
author | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-23 11:14:09 +0000 |
---|---|---|
committer | viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-23 11:14:09 +0000 |
commit | 5b9b1acca52ccdb60f0832b3dc82328d525270a9 (patch) | |
tree | 8c11b9698e64012a9a2f72ae53b7a71d29342f68 /src/mysql.c | |
parent | 72b960152c961f9195bc837788830e257898f42a (diff) |
BUILD : 1.7.22 (1450) BUGS : NOTES : Fixed a number of remaining buffer overflows in NS and CS not addressed by previous commit.
git-svn-id: svn://svn.anope.org/anope/trunk@1450 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1164 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mysql.c')
-rw-r--r-- | src/mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c index d50d1f3a6..22fa520da 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -238,7 +238,7 @@ char *db_mysql_secure(char *pass) memset(tmp_pass, '\0', PASSMAX); /* We couldnt decrypt the pass... */ - if (enc_decrypt(pass, tmp_pass, PASSMAX) != 1) { + if (enc_decrypt(pass, tmp_pass, PASSMAX - 1) != 1) { snprintf(epass, sizeof(epass), "'%s'", pass); } else { /* if we could decrypt the pass */ if (!pass) { |