From f1aa65b94686c555151a6d18c06ae533f58c380e Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 2 Oct 2009 22:58:20 +0200 Subject: Removed not needed memset()'s --- common/passwd.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common') 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); -- cgit