summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2021-01-13 23:50:21 +0000
committerjmatthew <jmatthew@openbsd.org>2021-01-13 23:50:21 +0000
commitb02e17298eca4b4d0cd32ef932c890f28087451e (patch)
treeee660e0bb6c5735a29014220b08db786a6d92580
parentClean up dtls1_reset_seq_numbers() (diff)
downloadwireguard-openbsd-b02e17298eca4b4d0cd32ef932c890f28087451e.tar.xz
wireguard-openbsd-b02e17298eca4b4d0cd32ef932c890f28087451e.zip
put M_ZERO in the right place
ok dlg@
-rw-r--r--sys/dev/pv/vmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c
index e2fefdd112f..a1883b47fb3 100644
--- a/sys/dev/pv/vmt.c
+++ b/sys/dev/pv/vmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmt.c,v 1.19 2020/06/24 22:03:40 cheloha Exp $ */
+/* $OpenBSD: vmt.c,v 1.20 2021/01/13 23:50:21 jmatthew Exp $ */
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
@@ -418,7 +418,7 @@ vmt_kvop(void *arg, int op, char *key, char *value, size_t valuelen)
int error = 0;
bufsz = VMT_RPC_BUFLEN;
- buf = malloc(bufsz, M_TEMP|M_ZERO, M_WAITOK);
+ buf = malloc(bufsz, M_TEMP, M_WAITOK | M_ZERO);
switch (op) {
case PVBUS_KVWRITE: