diff options
author | Damien Miller <djm@mindrot.org> | 2014-02-04 11:20:14 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-02-04 11:20:14 +1100 |
commit | a5103f413bde6f31bff85d6e1fd29799c647d765 (patch) | |
tree | 0b35ad9292b2ca8d58229435865d0ec3818e5981 /clientloop.c | |
parent | 1d2c4564265ee827147af246a16f3777741411ed (diff) |
- djm@cvs.openbsd.org 2014/02/02 03:44:32
[auth1.c auth2-chall.c auth2-passwd.c authfile.c bufaux.c bufbn.c]
[buffer.c cipher-3des1.c cipher.c clientloop.c gss-serv.c kex.c]
[kexdhc.c kexdhs.c kexecdhc.c kexgexc.c kexecdhs.c kexgexs.c key.c]
[monitor.c monitor_wrap.c packet.c readpass.c rsa.c serverloop.c]
[ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c]
[ssh-keygen.c ssh-rsa.c sshconnect.c sshconnect1.c sshconnect2.c]
[sshd.c]
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c index fd3ff49e8..59ad3a2c3 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clientloop.c,v 1.257 2014/01/31 16:39:19 tedu Exp $ */ | 1 | /* $OpenBSD: clientloop.c,v 1.258 2014/02/02 03:44:31 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1761,7 +1761,7 @@ client_input_stdout_data(int type, u_int32_t seq, void *ctxt) | |||
1761 | char *data = packet_get_string(&data_len); | 1761 | char *data = packet_get_string(&data_len); |
1762 | packet_check_eom(); | 1762 | packet_check_eom(); |
1763 | buffer_append(&stdout_buffer, data, data_len); | 1763 | buffer_append(&stdout_buffer, data, data_len); |
1764 | memset(data, 0, data_len); | 1764 | explicit_bzero(data, data_len); |
1765 | free(data); | 1765 | free(data); |
1766 | } | 1766 | } |
1767 | static void | 1767 | static void |
@@ -1771,7 +1771,7 @@ client_input_stderr_data(int type, u_int32_t seq, void *ctxt) | |||
1771 | char *data = packet_get_string(&data_len); | 1771 | char *data = packet_get_string(&data_len); |
1772 | packet_check_eom(); | 1772 | packet_check_eom(); |
1773 | buffer_append(&stderr_buffer, data, data_len); | 1773 | buffer_append(&stderr_buffer, data, data_len); |
1774 | memset(data, 0, data_len); | 1774 | explicit_bzero(data, data_len); |
1775 | free(data); | 1775 | free(data); |
1776 | } | 1776 | } |
1777 | static void | 1777 | static void |