summaryrefslogtreecommitdiff
path: root/src/nickserv.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
commit3324e62bae6f04e4f16f113b2e3352fae242f405 (patch)
treecfdd8d39e374619cad772aff317e2998fa078548 /src/nickserv.c
parent728fe3e1d42bf8cac353787480701b0a62559272 (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1428 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
-rw-r--r--src/nickserv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index e4a48bd56..8eea4c695 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -492,10 +492,8 @@ void load_ns_dbase(void)
if (ver < 14) {
SAFE(read_string(&pass, f));
if (pass) {
- len = strlen(pass);
- enc_encrypt(pass, len, nc->pass, PASSMAX);
- memset(pass, 0, len);
- free(pass);
+ memset(nc->pass, 0, PASSMAX);
+ memcpy(nc->pass, pass, strlen(pass));
} else
memset(nc->pass, 0, PASSMAX);
} else