summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-10-02 22:58:20 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-10-02 22:58:20 +0200
commitf1aa65b94686c555151a6d18c06ae533f58c380e (patch)
treed026de349cd52ac603dbacd5703c197caf6576b3 /common
parent709ed1ab7417596a049173ebe2380f7326c2d560 (diff)
downloadeurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.tar.gz
eurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.tar.xz
eurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.zip
Removed not needed memset()'s
Diffstat (limited to 'common')
-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);