diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-03 10:39:31 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-03 10:53:40 +0100 |
| commit | 646112b4e459e979cabfd9e759f6182b90678c90 (patch) | |
| tree | 1ba9bdea68cc3b41f85dca49bcf3db6f0502c6ce /src | |
| parent | ba4346f0890250e6d6daa15ede5a3709ac61a472 (diff) | |
wrapper: Make sure we really burn the buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index 485f1453..6f57ae8f 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -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); } |
