summaryrefslogtreecommitdiffstats
path: root/common/passwd.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-07 21:32:10 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-07 21:32:10 +0200
commit2e1851802188515f8edeed8eb3f753cf69e348d9 (patch)
tree2eaa6d13c1f77f39145cf1b5f92c8ac076eb237b /common/passwd.c
parent66b29488a7ed5909564ed03b3e89cd0d008df09e (diff)
downloadeurephia-2e1851802188515f8edeed8eb3f753cf69e348d9.tar.gz
eurephia-2e1851802188515f8edeed8eb3f753cf69e348d9.tar.xz
eurephia-2e1851802188515f8edeed8eb3f753cf69e348d9.zip
Added debug logging of free_nullsafe() calls as well
Diffstat (limited to 'common/passwd.c')
-rw-r--r--common/passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/passwd.c b/common/passwd.c
index 9820988..c3971f4 100644
--- a/common/passwd.c
+++ b/common/passwd.c
@@ -171,7 +171,7 @@ int gen_randsaltstr(eurephiaCTX *ctx, char *saltstr, int len) {
ptr++;
ptr2++;
}
- free_nullsafe(rand);
+ free_nullsafe(ctx, rand);
return 1;
}
@@ -579,7 +579,7 @@ char *eurephia_quick_hash(const char *salt, const char *pwd) {
// Cleanup - remove hash data from memory
memset(&sha, 0, sizeof(SHA512Context));
memset(&sha_res, 0, sizeof(sha_res));
- free_nullsafe(tmp);
+ free_nullsafe(NULL, tmp);
return ret;
}