summaryrefslogtreecommitdiffstats
path: root/common/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/passwd.c')
-rw-r--r--common/passwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/passwd.c b/common/passwd.c
index 0f8425d..b7c36c4 100644
--- a/common/passwd.c
+++ b/common/passwd.c
@@ -491,7 +491,6 @@ char *eurephia_pwd_crypt(eurephiaCTX *ctx, const char *key, const char *salt) {
tmp = malloc_nullsafe(ctx, saltlen+2);
assert(tmp != NULL);
- memset(tmp, 0, saltlen+2);
memset(&saltstr, 0, MAX_SALT_LEN+22);
// Get default min rounds for hashing
@@ -557,7 +556,6 @@ char *eurephia_quick_hash(const char *salt, const char *pwd) {
if( salt != NULL ) {
tmp = (char *) malloc_nullsafe(NULL, strlen_nullsafe(salt) + len + 10);
- memset(tmp,0, strlen_nullsafe(salt) + len + 2);
sprintf(tmp, "%s%s", pwd, salt);
} else {
tmp = strdup_nullsafe(pwd);