diff options
author | 2019-03-04 01:06:48 +0000 | |
---|---|---|
committer | 2019-03-04 01:06:48 +0000 | |
commit | 4da96d708f46fee71af696d6cab5b80f347cd09b (patch) | |
tree | fd345e0d89039e560b9cdca530003f9b3f98edda | |
parent | add the STANDARDS section (diff) | |
download | wireguard-openbsd-4da96d708f46fee71af696d6cab5b80f347cd09b.tar.xz wireguard-openbsd-4da96d708f46fee71af696d6cab5b80f347cd09b.zip |
Make sure we clear all valid bytes in clrbuf.
ok deraadt@
-rw-r--r-- | sys/sys/buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index b468a9ef883..0097b792315 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.107 2018/08/13 15:26:17 visa Exp $ */ +/* $OpenBSD: buf.h,v 1.108 2019/03/04 01:06:48 dhill Exp $ */ /* $NetBSD: buf.h,v 1.25 1997/04/09 21:12:17 mycroft Exp $ */ /* @@ -229,7 +229,7 @@ struct bufcache { * Zero out the buffer's data area. */ #define clrbuf(bp) { \ - bzero((bp)->b_data, (u_int)(bp)->b_bcount); \ + bzero((bp)->b_data, (bp)->b_bcount); \ (bp)->b_resid = 0; \ } |