mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
wrapper: Make sure we really burn the buffer.
This commit is contained in:
@@ -158,7 +158,7 @@ void crypto_free(struct ssh_crypto_struct *crypto){
|
||||
SAFE_FREE(crypto->kex_methods[i]);
|
||||
}
|
||||
|
||||
memset(crypto,0,sizeof(*crypto));
|
||||
BURN_BUFFER(crypto, sizeof(struct ssh_crypto_struct));
|
||||
|
||||
SAFE_FREE(crypto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user