mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +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]);
|
SAFE_FREE(crypto->kex_methods[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(crypto,0,sizeof(*crypto));
|
BURN_BUFFER(crypto, sizeof(struct ssh_crypto_struct));
|
||||||
|
|
||||||
SAFE_FREE(crypto);
|
SAFE_FREE(crypto);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user