Fix memset calls
This commit is contained in:
parent
fa409ddc8f
commit
cb464cac4d
2 changed files with 2 additions and 2 deletions
2
client.c
2
client.c
|
@ -2808,7 +2808,7 @@ authenticate_from_config(const char *filename)
|
|||
}
|
||||
|
||||
/* Erase password from stack */
|
||||
memset(line, sizeof (line), 0);
|
||||
memset(line, 0, sizeof (line));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
2
keys.c
2
keys.c
|
@ -109,7 +109,7 @@ generate_key(unsigned long key_id)
|
|||
fclose(f);
|
||||
|
||||
/* 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue