diff options
author | 2014-02-02 03:44:31 +0000 | |
---|---|---|
committer | 2014-02-02 03:44:31 +0000 | |
commit | c671dcf14e079a1b6525a1f57647ad96afd7b3f0 (patch) | |
tree | 2c346b9f1e36ecacfa7b237ca21c54a6daf3a369 /usr.bin/ssh/buffer.c | |
parent | drm/i915/dp: increase i2c-over-aux retry interval on AUX DEFER (diff) | |
download | wireguard-openbsd-c671dcf14e079a1b6525a1f57647ad96afd7b3f0.tar.xz wireguard-openbsd-c671dcf14e079a1b6525a1f57647ad96afd7b3f0.zip |
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'usr.bin/ssh/buffer.c')
-rw-r--r-- | usr.bin/ssh/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/buffer.c b/usr.bin/ssh/buffer.c index 1b9cd8a3f4e..eb765f1f320 100644 --- a/usr.bin/ssh/buffer.c +++ b/usr.bin/ssh/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.34 2013/11/08 11:15:19 dtucker Exp $ */ +/* $OpenBSD: buffer.c,v 1.35 2014/02/02 03:44:31 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -47,7 +47,7 @@ void buffer_free(Buffer *buffer) { if (buffer->alloc > 0) { - memset(buffer->buf, 0, buffer->alloc); + explicit_bzero(buffer->buf, buffer->alloc); buffer->alloc = 0; free(buffer->buf); } |