summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-09-01 18:02:02 +0000
committerderaadt <deraadt@openbsd.org>1996-09-01 18:02:02 +0000
commit72600f422d8adb0582a8fe732f791a7735a90bf9 (patch)
tree4a22f4a656e70f7ebbdd3a3601d9b9b44c635278
parentchange keymap_t to pccons_keymap_t in pccons (diff)
downloadwireguard-openbsd-72600f422d8adb0582a8fe732f791a7735a90bf9.tar.xz
wireguard-openbsd-72600f422d8adb0582a8fe732f791a7735a90bf9.zip
zap emalloc mem
-rw-r--r--usr.sbin/config/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/config/util.c b/usr.sbin/config/util.c
index c9db10cda80..c3b50187735 100644
--- a/usr.sbin/config/util.c
+++ b/usr.sbin/config/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.3 1996/04/21 23:40:28 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.4 1996/09/01 18:02:02 deraadt Exp $ */
/* $NetBSD: util.c,v 1.4 1996/03/17 11:50:16 cgd Exp $ */
/*
@@ -71,6 +71,7 @@ emalloc(size)
if ((p = malloc(size)) == NULL)
nomem();
+ memset(p, 0, size);
return (p);
}