diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-10-02 22:58:20 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-10-02 22:58:20 +0200 |
commit | f1aa65b94686c555151a6d18c06ae533f58c380e (patch) | |
tree | d026de349cd52ac603dbacd5703c197caf6576b3 /common/passwd.c | |
parent | 709ed1ab7417596a049173ebe2380f7326c2d560 (diff) | |
download | eurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.tar.gz eurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.tar.xz eurephia-f1aa65b94686c555151a6d18c06ae533f58c380e.zip |
Removed not needed memset()'s
Diffstat (limited to 'common/passwd.c')
-rw-r--r-- | common/passwd.c | 2 |
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); |