diff options
author | Damien Miller <djm@mindrot.org> | 2014-02-04 11:18:20 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-02-04 11:18:20 +1100 |
commit | 1d2c4564265ee827147af246a16f3777741411ed (patch) | |
tree | af83ab151453d013118cd1bd20fb8ba887665fed /clientloop.c | |
parent | 3928de067c286683a95fbdbdb5fdb3c78a0e5efd (diff) |
- tedu@cvs.openbsd.org 2014/01/31 16:39:19
[auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c]
[channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c]
[kexc25519.c krl.c monitor.c sandbox-systrace.c session.c]
[sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c]
[openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h]
replace most bzero with explicit_bzero, except a few that cna be memset
ok djm dtucker
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 f30c8b6b5..fd3ff49e8 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.257 2014/01/31 16:39:19 tedu 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 |
@@ -549,7 +549,7 @@ client_global_request_reply(int type, u_int32_t seq, void *ctxt) | |||
549 | gc->cb(type, seq, gc->ctx); | 549 | gc->cb(type, seq, gc->ctx); |
550 | if (--gc->ref_count <= 0) { | 550 | if (--gc->ref_count <= 0) { |
551 | TAILQ_REMOVE(&global_confirms, gc, entry); | 551 | TAILQ_REMOVE(&global_confirms, gc, entry); |
552 | bzero(gc, sizeof(*gc)); | 552 | explicit_bzero(gc, sizeof(*gc)); |
553 | free(gc); | 553 | free(gc); |
554 | } | 554 | } |
555 | 555 | ||
@@ -876,7 +876,7 @@ process_cmdline(void) | |||
876 | int cancel_port, ok; | 876 | int cancel_port, ok; |
877 | Forward fwd; | 877 | Forward fwd; |
878 | 878 | ||
879 | bzero(&fwd, sizeof(fwd)); | 879 | memset(&fwd, 0, sizeof(fwd)); |
880 | fwd.listen_host = fwd.connect_host = NULL; | 880 | fwd.listen_host = fwd.connect_host = NULL; |
881 | 881 | ||
882 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); | 882 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |