aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-03 10:45:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-03 10:45:02 +0100
commita466a624e2c9567854c88879baa9cba89071dc8d (patch)
treeffda1d6907cf8737a37c92a86b12bd84764abfcd /src
parent643a3b7cc360dc69bc998ed9db52b9b33ffc70bd (diff)
downloadlibssh-a466a624e2c9567854c88879baa9cba89071dc8d.tar.gz
libssh-a466a624e2c9567854c88879baa9cba89071dc8d.tar.xz
libssh-a466a624e2c9567854c88879baa9cba89071dc8d.zip
session: Make sure we correctly burn the buffer.
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index fe11b416..d4b3643f 100644
--- a/src/session.c
+++ b/src/session.c
@@ -273,7 +273,7 @@ void ssh_free(ssh_session session) {
}
/* burn connection, it could hang sensitive datas */
- ZERO_STRUCTP(session);
+ BURN_BUFFER(session, sizeof(struct ssh_session_struct));
SAFE_FREE(session);
}