Fix memset calls

This commit is contained in:
Miroslav Lichvar
2013-06-21 14:39:12 +02:00
parent fa409ddc8f
commit cb464cac4d
2 changed files with 2 additions and 2 deletions

View File

@@ -2808,7 +2808,7 @@ authenticate_from_config(const char *filename)
} }
/* Erase password from stack */ /* Erase password from stack */
memset(line, sizeof (line), 0); memset(line, 0, sizeof (line));
return ret; return ret;
} }

2
keys.c
View File

@@ -109,7 +109,7 @@ generate_key(unsigned long key_id)
fclose(f); fclose(f);
/* Erase the key from stack */ /* Erase the key from stack */
memset(key, sizeof (key), 0); memset(key, 0, sizeof (key));
LOG(LOGS_INFO, LOGF_Keys, "Generated key %lu", key_id); LOG(LOGS_INFO, LOGF_Keys, "Generated key %lu", key_id);