diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clientloop.c b/clientloop.c index 30097cdfe..4bc5b57d2 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clientloop.c,v 1.256 2013/11/20 20:54:10 deraadt 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 |
@@ -553,7 +553,7 @@ client_global_request_reply(int type, u_int32_t seq, void *ctxt) | |||
553 | gc->cb(type, seq, gc->ctx); | 553 | gc->cb(type, seq, gc->ctx); |
554 | if (--gc->ref_count <= 0) { | 554 | if (--gc->ref_count <= 0) { |
555 | TAILQ_REMOVE(&global_confirms, gc, entry); | 555 | TAILQ_REMOVE(&global_confirms, gc, entry); |
556 | bzero(gc, sizeof(*gc)); | 556 | explicit_bzero(gc, sizeof(*gc)); |
557 | free(gc); | 557 | free(gc); |
558 | } | 558 | } |
559 | 559 | ||
@@ -885,7 +885,7 @@ process_cmdline(void) | |||
885 | int cancel_port, ok; | 885 | int cancel_port, ok; |
886 | Forward fwd; | 886 | Forward fwd; |
887 | 887 | ||
888 | bzero(&fwd, sizeof(fwd)); | 888 | memset(&fwd, 0, sizeof(fwd)); |
889 | fwd.listen_host = fwd.connect_host = NULL; | 889 | fwd.listen_host = fwd.connect_host = NULL; |
890 | 890 | ||
891 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); | 891 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |
@@ -1781,7 +1781,7 @@ client_input_stdout_data(int type, u_int32_t seq, void *ctxt) | |||
1781 | char *data = packet_get_string(&data_len); | 1781 | char *data = packet_get_string(&data_len); |
1782 | packet_check_eom(); | 1782 | packet_check_eom(); |
1783 | buffer_append(&stdout_buffer, data, data_len); | 1783 | buffer_append(&stdout_buffer, data, data_len); |
1784 | memset(data, 0, data_len); | 1784 | explicit_bzero(data, data_len); |
1785 | free(data); | 1785 | free(data); |
1786 | } | 1786 | } |
1787 | static void | 1787 | static void |
@@ -1791,7 +1791,7 @@ client_input_stderr_data(int type, u_int32_t seq, void *ctxt) | |||
1791 | char *data = packet_get_string(&data_len); | 1791 | char *data = packet_get_string(&data_len); |
1792 | packet_check_eom(); | 1792 | packet_check_eom(); |
1793 | buffer_append(&stderr_buffer, data, data_len); | 1793 | buffer_append(&stderr_buffer, data, data_len); |
1794 | memset(data, 0, data_len); | 1794 | explicit_bzero(data, data_len); |
1795 | free(data); | 1795 | free(data); |
1796 | } | 1796 | } |
1797 | static void | 1797 | static void |