summaryrefslogtreecommitdiff
path: root/src/mysql.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-10-18 08:13:35 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-10-18 08:13:35 +0000
commitf41d792c0177793d904614a2996fe5fb4e4b84da (patch)
treed047317213399021cbac0fed11420ab0a8659ccd /src/mysql.c
parent9911e0abb2892bb0256c4b8c06f3836211c02b9d (diff)
BUILD : 1.7.17 (1188) BUGS : N/A NOTES : Make the mysql secure check easier to read... its ugly :(
git-svn-id: svn://svn.anope.org/anope/trunk@1188 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@908 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mysql.c')
-rw-r--r--src/mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 011c8b615..a7f84b06e 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -244,7 +244,7 @@ char *db_mysql_secure(char *pass)
if(enc_decrypt(pass,tmp_pass,PASSMAX)!=1) {
snprintf(epass, sizeof(epass), "'%s'", pass);
} else { /* if we could decrypt the pass */
- if (!tmp_pass) {
+ if (!pass) {
snprintf(epass, sizeof(epass), "''");
} else if ((!MysqlSecure) || (strcmp(MysqlSecure, "") == 0)) {
snprintf(epass, sizeof(epass), "'%s'", tmp_pass);