diff options
author | 2016-07-10 23:07:34 +0000 | |
---|---|---|
committer | 2016-07-10 23:07:34 +0000 | |
commit | e7cea41db1f0a0106619ce2b35ff8797563a8c03 (patch) | |
tree | 0919866f9a8a7fc1f6228062125dd7eb8772dc1d /lib/libssl/src | |
parent | use offsetof to create an offset instead of illegal unaligned pointers (diff) | |
download | wireguard-openbsd-e7cea41db1f0a0106619ce2b35ff8797563a8c03.tar.xz wireguard-openbsd-e7cea41db1f0a0106619ce2b35ff8797563a8c03.zip |
zero the read buffer after copying data to user so it doesn't linger.
ok beck
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/ssl/s3_pkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/ssl/s3_pkt.c b/lib/libssl/src/ssl/s3_pkt.c index 153b37612f7..0e97be6728b 100644 --- a/lib/libssl/src/ssl/s3_pkt.c +++ b/lib/libssl/src/ssl/s3_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_pkt.c,v 1.57 2015/09/12 16:10:07 doug Exp $ */ +/* $OpenBSD: s3_pkt.c,v 1.58 2016/07/10 23:07:34 tedu Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -956,6 +956,7 @@ start: memcpy(buf, &(rr->data[rr->off]), n); if (!peek) { + memset(&(rr->data[rr->off]), 0, n); rr->length -= n; rr->off += n; if (rr->length == 0) { |